From 17a4dde30a12f1ff170469ef54e9ed7f363ccdf1 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 25 May 2024 03:30:51 +0200 Subject: [PATCH] log return value of CreateWindowExA --- src/winapi_hooks.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index 737b95b905..b1e6754b17 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -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, @@ -1404,7 +1404,7 @@ HWND WINAPI fake_CreateWindowExA( } } - return real_CreateWindowExA( + HWND hwnd = real_CreateWindowExA( dwExStyle, lpClassName, lpWindowName, @@ -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)