1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

fix CreateWindowExA hook

This commit is contained in:
FunkyFr3sh 2021-06-09 02:38:19 +02:00
parent a7fcc238e4
commit 7cce45b64a

View File

@ -468,7 +468,7 @@ HWND WINAPI fake_CreateWindowExA(
DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int X, int Y, DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int X, int Y,
int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam) 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) if (!g_ddraw->bnet_active)
{ {