Fixed a simple typo. IT WORKS! Also shortened one of the debug log messages.

This commit is contained in:
Pietro Gagliardi 2016-04-24 00:54:31 -04:00
parent 1f90366edd
commit e90da765e3
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ static BOOL shouldRun(HWND hwnd, T method)
if (IsChild(utilWindow, hwnd) != 0) if (IsChild(utilWindow, hwnd) != 0)
return FALSE; return FALSE;
// registered? // registered?
return method == NULL; return method != NULL;
} }
BOOL runWM_COMMAND(WPARAM wParam, LPARAM lParam, LRESULT *lResult) BOOL runWM_COMMAND(WPARAM wParam, LPARAM lParam, LRESULT *lResult)

View File

@ -87,7 +87,7 @@ void uiWindowsEnsureDestroyWindow(HWND hwnd)
void uiWindowsEnsureSetParent(HWND hwnd, HWND parent) void uiWindowsEnsureSetParent(HWND hwnd, HWND parent)
{ {
if (SetParent(hwnd, parent) == 0) 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) void uiWindowsEnsureAssignControlIDZOrder(HWND hwnd, LONG_PTR controlID, HWND insertAfter)