We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f19aa commit 13a203bCopy full SHA for 13a203b
1 file changed
BorderlessAddon/dllmain.cpp
@@ -75,7 +75,7 @@ namespace FunctionHooks
75
dwExStyle &= ~(WS_EX_OVERLAPPEDWINDOW | WS_EX_TOPMOST);
76
HWND result = CreateWindowExA(dwExStyle, lpClassName, lpWindowName, dwStyle, X, Y,
77
nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
78
- if (!mainWindow) mainWindow = result;
+ if (!mainWindow || !::IsWindow(mainWindow)) mainWindow = result;
79
return result;
80
}
81
else return CreateWindowExA(dwExStyle, lpClassName, lpWindowName, dwStyle, X, Y,
0 commit comments