mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 01:00:06 +00:00
fix some bugs
svn path=/trunk/; revision=29264
This commit is contained in:
parent
b6ebc1b19c
commit
e539947c94
1 changed files with 10 additions and 10 deletions
|
@ -20,17 +20,17 @@ BOOL
|
|||
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 @@ PropSheetExtProc(PSP_PROPSHEETPAGE_REQUEST PropPageRequest, LPFNADDPROPSHEETPAGE
|
|||
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 @@ ProcessorDlgProc (HWND hDlg, UINT uMessage, WPARAM wParam, LPARAM lParam)
|
|||
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))
|
||||
|
|
Loading…
Reference in a new issue