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:
parent
a7fcc238e4
commit
7cce45b64a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user