diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index 19adea2..65cfd36 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -468,7 +468,7 @@ HWND WINAPI fake_CreateWindowExA( DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam) { - if (lpClassName && _strcmpi(lpClassName, "SDlgDialog") == 0 && g_ddraw) + if (HIWORD(lpClassName) && _strcmpi(lpClassName, "SDlgDialog") == 0 && g_ddraw) { if (!g_ddraw->bnet_active) {