Commit 81c05589 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shell32: Use a signed value to assign single signed bitfields values.

parent 50adef19
...@@ -306,12 +306,12 @@ VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask) ...@@ -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) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment