21 Sep
2022
21 Sep
'22
6:47 a.m.
Huw Davies (@huw) commented about programs/notepad/dialog.c:
+{ + DialogBoxW(Globals.hInstance, MAKEINTRESOURCEW(DIALOG_GOTO), + Globals.hMainWnd, DIALOG_GOTO_DlgProc); +} + +static INT_PTR WINAPI DIALOG_GOTO_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) +{ + switch(msg) + { + case WM_COMMAND: + { + switch (wParam) + { + case IDOK: + { + int lineValue = GetDlgItemInt(hDlg, IDC_GOTO_LINEVALUE, NULL, FALSE) -1; Add a space between the `-` and the `1` (othewise it looks rather like a unary minus).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/900#note_8954