Skip to content

Commit

Permalink
log return value of CreateWindowExA
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed May 25, 2024
1 parent 99e0cf8 commit 17a4dde
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,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)
{
TRACE("CreateWindowExA("
TRACE("-> CreateWindowExA("
"dwExStyle=%08X, lpClassName=%p, lpWindowName=%p, dwStyle=%08X, X=%d, Y=%d, nWidth=%d, "
"nHeight=%d, hWndParent=%p, hMenu=%p, hInstance=%p, lpParam=%p)\n",
dwExStyle,
Expand Down Expand Up @@ -1404,7 +1404,7 @@ HWND WINAPI fake_CreateWindowExA(
}
}

return real_CreateWindowExA(
HWND hwnd = real_CreateWindowExA(
dwExStyle,
lpClassName,
lpWindowName,
Expand All @@ -1417,6 +1417,10 @@ HWND WINAPI fake_CreateWindowExA(
hMenu,
hInstance,
lpParam);

TRACE("<- CreateWindowExA(hwnd=%p)\n", hwnd);

return hwnd;
}

HRESULT WINAPI fake_CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID riid, LPVOID* ppv)
Expand Down

0 comments on commit 17a4dde

Please sign in to comment.