Author: cwittich
Date: Fri Sep 28 04:12:59 2007
New Revision: 29264
URL:
http://svn.reactos.org/svn/reactos?rev=29264&view=rev
Log:
fix some bugs
Modified:
trunk/reactos/dll/win32/shellext/devcpux/processor.c
Modified: trunk/reactos/dll/win32/shellext/devcpux/processor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shellext/devcpux…
==============================================================================
--- trunk/reactos/dll/win32/shellext/devcpux/processor.c (original)
+++ trunk/reactos/dll/win32/shellext/devcpux/processor.c Fri Sep 28 04:12:59 2007
@@ -20,17 +20,17 @@
APIENTRY
DllMain (HANDLE hInstance, DWORD dwReason, LPVOID lpReserved)
{
- switch (dwReason)
- {
+ switch (dwReason)
+ {
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
- case DLL_PROCESS_ATTACH:
- case DLL_PROCESS_DETACH:
- break;
- }
+ case DLL_PROCESS_ATTACH:
+ case DLL_PROCESS_DETACH:
+ break;
+ }
g_hInstance = (HINSTANCE) hInstance;
- return TRUE;
+ return TRUE;
}
@@ -54,10 +54,10 @@
PropSheetPage.pfnDlgProc = ProcessorDlgProc;
hPropSheetPage = CreatePropertySheetPage(&PropSheetPage);
- if(hPropSheetPage)
+ if(!hPropSheetPage)
return FALSE;
- if(!(*fAddFunc)(hPropSheetPage, lParam)) {
+ if(!(fAddFunc)(hPropSheetPage, lParam)) {
DestroyPropertySheetPage (hPropSheetPage);
return FALSE;
}
@@ -88,7 +88,7 @@
BOOL bFirst = TRUE;
SYSTEM_INFO SystemInfo;
PROCESSOR_POWER_INFORMATION PowerInfo;
-
+
if (IsProcessorFeaturePresent(PF_MMX_INSTRUCTIONS_AVAILABLE))
AddFeature(szFeatures, L"MMX", &bFirst);
if (IsProcessorFeaturePresent(PF_XMMI_INSTRUCTIONS_AVAILABLE))