From 7cce45b64a2f2fc8281a4d27e2368e035c328f94 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 9 Jun 2021 02:38:19 +0200 Subject: [PATCH] fix CreateWindowExA hook --- src/winapi_hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {