31 Jan
2023
31 Jan
'23
4:40 p.m.
Jinoh Kang (@iamahuman) commented about dlls/comdlg32/itemdlg.c:
static HRESULT create_dialog(FileDialogImpl *This, HWND parent) { INT_PTR res; + ULONG_PTR actctx_cookie = 0; + + GetCurrentActCtx(&This->user_actctx); In case of nested `Show()` calls, you should either:
1. Fail with `E_UNEXPECTED`, or 2. Backup the previous `user_actctx` value before calling `GetCurrentActCtx`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2068#note_22480