12 Sep
2022
12 Sep
'22
12:30 p.m.
Huw Davies (@huw) commented about programs/notepad/main.c:
} }
+LRESULT CALLBACK EDIT_CallBackProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
The prototype isn't correct - it's not a regular wndproc. See: https://docs.microsoft.com/en-us/windows/win32/api/commctrl/nc-commctrl-subc... Once the prototype is correct, there should be no need for the (SUBCLASSPROC) cast in the call to `SetWindowSubclass()` below. This is why it failed to run on Windows for me. This could also be made `static` and the prototype removed from `main.h`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_8213