Fixed the RemoveWindowSubclass() crash in Windows Checkboxes.

This commit is contained in:
Pietro Gagliardi 2014-07-21 21:37:06 -04:00
parent 451536f6a5
commit 58db287ca2
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ static LRESULT CALLBACK checkboxSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA
}
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
case WM_NCDESTROY:
if ((*fv_RemoveWindowSubclass)(hwnd, buttonSubProc, id) == FALSE)
if ((*fv_RemoveWindowSubclass)(hwnd, checkboxSubProc, id) == FALSE)
xpanic("error removing Checkbox subclass (which was for its own event handler)", GetLastError());
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
default: