From 782fb0fba605fc4337db058bb2579e3a3d4db864 Mon Sep 17 00:00:00 2001 From: spx Date: Tue, 6 Sep 2011 08:41:42 +0000 Subject: [PATCH] Code cleanup. --- Library/System.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/System.cpp b/Library/System.cpp index 33e68891..3766f61c 100644 --- a/Library/System.cpp +++ b/Library/System.cpp @@ -774,7 +774,7 @@ void CSystem::PrepareHelperWindow(HWND WorkerW) GetClassName(hwnd, className, 64); GetWindowText(hwnd, windowText, 64); - SetLastError(0); + SetLastError(ERROR_SUCCESS); } // Insert the helper window after the found window @@ -900,6 +900,11 @@ LRESULT CALLBACK CSystem::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP { if (hWnd != c_Window) { + if (uMsg == WM_WINDOWPOSCHANGING) + { + ((LPWINDOWPOS)lParam)->flags |= SWP_NOZORDER; + return 0; + } return DefWindowProc(hWnd, uMsg, wParam, lParam); }