Fixed the RemoveWindowSubclass() crash in Windows Checkboxes.
This commit is contained in:
parent
451536f6a5
commit
58db287ca2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue