mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:03:02 +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
|
APIENTRY
|
||||||
DllMain (HANDLE hInstance, DWORD dwReason, LPVOID lpReserved)
|
DllMain (HANDLE hInstance, DWORD dwReason, LPVOID lpReserved)
|
||||||
{
|
{
|
||||||
switch (dwReason)
|
switch (dwReason)
|
||||||
{
|
{
|
||||||
case DLL_THREAD_ATTACH:
|
case DLL_THREAD_ATTACH:
|
||||||
case DLL_THREAD_DETACH:
|
case DLL_THREAD_DETACH:
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_hInstance = (HINSTANCE) hInstance;
|
g_hInstance = (HINSTANCE) hInstance;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -54,10 +54,10 @@ PropSheetExtProc(PSP_PROPSHEETPAGE_REQUEST PropPageRequest, LPFNADDPROPSHEETPAGE
|
||||||
PropSheetPage.pfnDlgProc = ProcessorDlgProc;
|
PropSheetPage.pfnDlgProc = ProcessorDlgProc;
|
||||||
|
|
||||||
hPropSheetPage = CreatePropertySheetPage(&PropSheetPage);
|
hPropSheetPage = CreatePropertySheetPage(&PropSheetPage);
|
||||||
if(hPropSheetPage)
|
if(!hPropSheetPage)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if(!(*fAddFunc)(hPropSheetPage, lParam)) {
|
if(!(fAddFunc)(hPropSheetPage, lParam)) {
|
||||||
DestroyPropertySheetPage (hPropSheetPage);
|
DestroyPropertySheetPage (hPropSheetPage);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue