[CHARMAP]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 5 Oct 2014 14:55:15 +0000 (14:55 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 5 Oct 2014 14:55:15 +0000 (14:55 +0000)
- remove dead code
CID 1237028

[SETUPAPI]
- fix swapped arguments
CID 1237062

svn path=/trunk/; revision=64546

reactos/base/applications/charmap/settings.c
reactos/dll/win32/setupapi/misc.c

index 8b33cfa..ff75d78 100644 (file)
@@ -90,8 +90,9 @@ extern void LoadSettings(void)
         }
 
         RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvanChecked, &size);
         }
 
         RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvanChecked, &size);
+
         if(dwAdvanChecked == TRUE)
         if(dwAdvanChecked == TRUE)
-            SendDlgItemMessage(hCharmapDlg, IDC_CHECK_ADVANCED, BM_CLICK, (dwAdvanChecked ? MF_CHECKED : MF_UNCHECKED), 0);
+            SendDlgItemMessage(hCharmapDlg, IDC_CHECK_ADVANCED, BM_CLICK, MF_CHECKED, 0);
 
     RegCloseKey(hKey);
     }
 
     RegCloseKey(hKey);
     }
index 138dcae..0b79e43 100644 (file)
@@ -1090,7 +1090,7 @@ pSetupCenterWindowRelativeToParent(HWND hwnd)
     posX = ((nOwnerWidth - nWindowWidth) / 2) + ptOrigin.x;
     posY = ((nOwnerHeight - nWindowHeight) / 2) + ptOrigin.y;
 
     posX = ((nOwnerWidth - nWindowWidth) / 2) + ptOrigin.x;
     posY = ((nOwnerHeight - nWindowHeight) / 2) + ptOrigin.y;
 
-    MoveWindow(hwnd, posX, posY, nWindowHeight, nWindowWidth, 0);
+    MoveWindow(hwnd, posX, posY, nWindowWidth, nWindowHeight, 0);
 }
 
 
 }