diff --git a/DDrawCompat/CompatGdiDc.cpp b/DDrawCompat/CompatGdiDc.cpp index 0736d7b..f6b54f3 100644 --- a/DDrawCompat/CompatGdiDc.cpp +++ b/DDrawCompat/CompatGdiDc.cpp @@ -166,7 +166,7 @@ namespace CompatGdiDc return it->second.dc; } - const HWND hwnd = CALL_ORIG_FUNC(WindowFromDC)(origDc); + const HWND hwnd = WindowFromDC(origDc); const bool isMenuWindow = hwnd && 0x8000 == GetClassLongPtr(hwnd, GCW_ATOM); if (isMenuWindow && !isMenuPaintDc) {