mirror of
https://github.com/bobranten/Ext4Fsd.git
synced 2025-10-29 13:18:30 -05:00
Merge pull request #59 from Vince1171/reactos-upstream/replace-assignment-comparison
fix equality check by replacing assignment with comparison
This commit is contained in:
@@ -426,14 +426,14 @@ Ext2ProcessVolumeProperty(
|
||||
case APP_CMD_SET_PROPERTY2:
|
||||
|
||||
RtlZeroMemory(Vcb->sHidingPrefix, HIDINGPAT_LEN);
|
||||
if (Vcb->bHidingPrefix = Property2->bHidingPrefix) {
|
||||
if (Vcb->bHidingPrefix == Property2->bHidingPrefix) {
|
||||
RtlCopyMemory( Vcb->sHidingPrefix,
|
||||
Property2->sHidingPrefix,
|
||||
HIDINGPAT_LEN - 1);
|
||||
}
|
||||
|
||||
RtlZeroMemory(Vcb->sHidingSuffix, HIDINGPAT_LEN);
|
||||
if (Vcb->bHidingSuffix = Property2->bHidingSuffix) {
|
||||
if (Vcb->bHidingSuffix == Property2->bHidingSuffix) {
|
||||
RtlCopyMemory( Vcb->sHidingSuffix,
|
||||
Property2->sHidingSuffix,
|
||||
HIDINGPAT_LEN - 1);
|
||||
@@ -511,7 +511,7 @@ Ext2ProcessVolumeProperty(
|
||||
RtlCopyMemory(Property2->UUID, Vcb->SuperBlock->s_uuid, 16);
|
||||
Property2->DrvLetter = Vcb->DrvLetter;
|
||||
|
||||
if (Property2->bHidingPrefix = Vcb->bHidingPrefix) {
|
||||
if (Property2->bHidingPrefix == Vcb->bHidingPrefix) {
|
||||
RtlCopyMemory( Property2->sHidingPrefix,
|
||||
Vcb->sHidingPrefix,
|
||||
HIDINGPAT_LEN);
|
||||
@@ -520,7 +520,7 @@ Ext2ProcessVolumeProperty(
|
||||
HIDINGPAT_LEN);
|
||||
}
|
||||
|
||||
if (Property2->bHidingSuffix = Vcb->bHidingSuffix) {
|
||||
if (Property2->bHidingSuffix == Vcb->bHidingSuffix) {
|
||||
RtlCopyMemory( Property2->sHidingSuffix,
|
||||
Vcb->sHidingSuffix,
|
||||
HIDINGPAT_LEN);
|
||||
|
||||
@@ -2179,7 +2179,7 @@ Ext2PerformRegistryVolumeParams(IN PEXT2_VCB Vcb)
|
||||
memcpy(Vcb->Codepage.AnsiName, Ext2Global->Codepage.AnsiName, CODEPAGE_MAXLEN);
|
||||
Vcb->Codepage.PageTable = Ext2Global->Codepage.PageTable;
|
||||
|
||||
if (Vcb->bHidingPrefix = Ext2Global->bHidingPrefix) {
|
||||
if (Vcb->bHidingPrefix == Ext2Global->bHidingPrefix) {
|
||||
RtlCopyMemory( Vcb->sHidingPrefix,
|
||||
Ext2Global->sHidingPrefix,
|
||||
HIDINGPAT_LEN);
|
||||
@@ -2188,7 +2188,7 @@ Ext2PerformRegistryVolumeParams(IN PEXT2_VCB Vcb)
|
||||
HIDINGPAT_LEN);
|
||||
}
|
||||
|
||||
if (Vcb->bHidingSuffix = Ext2Global->bHidingSuffix) {
|
||||
if (Vcb->bHidingSuffix == Ext2Global->bHidingSuffix) {
|
||||
RtlCopyMemory( Vcb->sHidingSuffix,
|
||||
Ext2Global->sHidingSuffix,
|
||||
HIDINGPAT_LEN);
|
||||
|
||||
Reference in New Issue
Block a user