[saco] Match SubclassGameWindow()

This commit is contained in:
RD42 2024-07-22 18:27:19 +08:00
parent 64ad774209
commit ed1646d102

View File

@ -26,7 +26,7 @@ BOOL SubclassGameWindow()
{ {
HWND hwndGameWnd = pGame->GetMainWindowHwnd(); HWND hwndGameWnd = pGame->GetMainWindowHwnd();
if(!hwndGameWnd) return FALSE; if(hwndGameWnd) {
DWORD dwStyle = GetClassLong(hwndGameWnd,GCL_STYLE); DWORD dwStyle = GetClassLong(hwndGameWnd,GCL_STYLE);
SetClassLong(hwndGameWnd,GCL_STYLE,dwStyle|CS_DBLCLKS); SetClassLong(hwndGameWnd,GCL_STYLE,dwStyle|CS_DBLCLKS);
@ -42,6 +42,8 @@ BOOL SubclassGameWindow()
} }
return TRUE; return TRUE;
}
return FALSE;
} }
//---------------------------------------------------- //----------------------------------------------------