This avoids an eventual stack overflow in exception-heavy applications.
Important note: when using the experimental Wow64 support on Linux, this change causes a crash during exception handling when unix_funcs->unwind_builtin_dll is called.
The call in dll/ntdll/signal_x86_64.c virtual_unwind() to unix_funcs->unwind_builtin_dll() should be commented out and replaced with 'status = STATUS_UNSUCCESSFUL;'.
This is along the same lines as needing to comment out the unix_funcs->init_builtin_dll() call for Wow64.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/802
Hopefully this patch series is easier to review than the last one.
--
v2: uiautomationcore: Implement UiaNodeFromHandle.
uiautomationcore: Add get_prop_val method to IWineUiaNode.
uiautomationcore: Implement UiaReturnRawElementProvider.
https://gitlab.winehq.org/wine/wine/-/merge_requests/801
Huw Davies (@huw) commented about programs/notepad/notepad.rc:
> MENUITEM "&Search next\tF3", CMD_SEARCH_NEXT
> MENUITEM "&Replace...\tCtrl+H", CMD_REPLACE
> }
> +POPUP "&View"
> +{
> + MENUITEM "&Status Bar", CMD_SBAR
> + }
Another trailing space after `"&View"` and a space before the `}`.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7878
Huw Davies (@huw) commented about programs/notepad/main.c:
> return dpi;
> }
>
> +VOID ToggleStatusBar(VOID)
`static` (as the function isn't used outside the file).
Also, and I know it not the case in this file, but let's use `void` rather than `VOID`.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7873
Huw Davies (@huw) commented about programs/notepad/dialog.c:
> Globals.bWrapLongLines = !Globals.bWrapLongLines;
> CheckMenuItem(GetMenu(Globals.hMainWnd), CMD_WRAP,
> MF_BYCOMMAND | (Globals.bWrapLongLines ? MF_CHECKED : MF_UNCHECKED));
> + SendMessageW(Globals.hMainWnd,WM_SIZE,0,MAKELPARAM(rc.right,rc.bottom));
This looks hacky. You probably want to move the code that you're adding to the main window's WM_SIZE handler to a helper function and call that directly from here.
Also, and this applies throughout, please leave a space after each comma.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7872
Generally I think this MR should be split into two separate ones. That'll give us a chance to get the status bar work in before we worry about the goto dialog box.
So, just concentrating on the status bar commit, I'd start off by splitting that into two commits. First add the code that creates and displays the status bar (it doesn't need to display any text at this point). Then add a second commit that updates the status bar with line / col info.
As @besentv mentioned, the commit messages are still not quite there - we terminate the subject with a period.
I'll comment on some of the code below.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/787#note_7869