mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:50:21 +00:00
shell32: Use a signed value to assign single signed bitfields values.
This commit is contained in:
parent
50adef1949
commit
81c05589af
|
@ -306,12 +306,12 @@ VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask)
|
||||||
if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 0;
|
if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 0;
|
||||||
}
|
}
|
||||||
else if (dwData == 1)
|
else if (dwData == 1)
|
||||||
{ if (SSF_SHOWALLOBJECTS & dwMask) lpsfs->fShowAllObjects = 1;
|
{ if (SSF_SHOWALLOBJECTS & dwMask) lpsfs->fShowAllObjects = -1;
|
||||||
if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 0;
|
if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 0;
|
||||||
}
|
}
|
||||||
else if (dwData == 2)
|
else if (dwData == 2)
|
||||||
{ if (SSF_SHOWALLOBJECTS & dwMask) lpsfs->fShowAllObjects = 0;
|
{ if (SSF_SHOWALLOBJECTS & dwMask) lpsfs->fShowAllObjects = 0;
|
||||||
if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 1;
|
if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RegCloseKey (hKey);
|
RegCloseKey (hKey);
|
||||||
|
@ -1182,15 +1182,15 @@ BOOL WINAPI ReadCabinetState(CABINETSTATE *cs, int length)
|
||||||
memset(cs, 0, sizeof(*cs));
|
memset(cs, 0, sizeof(*cs));
|
||||||
cs->cLength = sizeof(*cs);
|
cs->cLength = sizeof(*cs);
|
||||||
cs->nVersion = 2;
|
cs->nVersion = 2;
|
||||||
cs->fFullPathTitle = FALSE;
|
cs->fFullPathTitle = 0;
|
||||||
cs->fSaveLocalView = TRUE;
|
cs->fSaveLocalView = -1;
|
||||||
cs->fNotShell = FALSE;
|
cs->fNotShell = 0;
|
||||||
cs->fSimpleDefault = TRUE;
|
cs->fSimpleDefault = -1;
|
||||||
cs->fDontShowDescBar = FALSE;
|
cs->fDontShowDescBar = 0;
|
||||||
cs->fNewWindowMode = FALSE;
|
cs->fNewWindowMode = 0;
|
||||||
cs->fShowCompColor = FALSE;
|
cs->fShowCompColor = 0;
|
||||||
cs->fDontPrettyNames = FALSE;
|
cs->fDontPrettyNames = 0;
|
||||||
cs->fAdminsCreateCommonGroups = TRUE;
|
cs->fAdminsCreateCommonGroups = -1;
|
||||||
cs->fMenuEnumFilter = 96;
|
cs->fMenuEnumFilter = 96;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue