From e90da765e33b91e27e9ee4fd0afab651cf3bfa90 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 24 Apr 2016 00:54:31 -0400 Subject: [PATCH] Fixed a simple typo. IT WORKS! Also shortened one of the debug log messages. --- windows/events.cpp | 2 +- windows/winutil.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/events.cpp b/windows/events.cpp index 160ab7db..56ef78e7 100644 --- a/windows/events.cpp +++ b/windows/events.cpp @@ -74,7 +74,7 @@ static BOOL shouldRun(HWND hwnd, T method) if (IsChild(utilWindow, hwnd) != 0) return FALSE; // registered? - return method == NULL; + return method != NULL; } BOOL runWM_COMMAND(WPARAM wParam, LPARAM lParam, LRESULT *lResult) diff --git a/windows/winutil.cpp b/windows/winutil.cpp index 208c5ab9..53440cbc 100644 --- a/windows/winutil.cpp +++ b/windows/winutil.cpp @@ -87,7 +87,7 @@ void uiWindowsEnsureDestroyWindow(HWND hwnd) void uiWindowsEnsureSetParent(HWND hwnd, HWND parent) { if (SetParent(hwnd, parent) == 0) - logLastError(L"error setting window parent in uiWindowsEnsureSetParent"); + logLastError(L"error setting window parent"); } void uiWindowsEnsureAssignControlIDZOrder(HWND hwnd, LONG_PTR controlID, HWND insertAfter)