Jinoh Kang (@iamahuman) commented about dlls/comdlg32/itemdlg.c:
if (!GetCurrentActCtx(&This->user_actctx))
ERR("Failed to get current activation context, last error %lx\n", GetLastError());
if (!(comdlg32_actctx_state.is_active = ActivateActCtx(COMDLG32_hActCtx, &comdlg32_actctx_state.cookie)))
ERR("Failed to activate activation context, last error %lx\n", GetLastError());
SetLastError(0); res = DialogBoxParamW(COMDLG32_hInstance, MAKEINTRESOURCEW(NEWFILEOPENV3ORD), parent, itemdlg_dlgproc, (LPARAM)This); This->dlg_hwnd = NULL;
if (comdlg32_actctx_state.is_active && !DeactivateActCtx(0, comdlg32_actctx_state.cookie))
ERR("Failed to deactivate activation context, last error %lx\n", GetLastError());
You can add ReleaseActCtx() call here.
```suggestion:-0+0
if (This->user_actctx != INVALID_HANDLE_VALUE) ReleaseActCtx(This->user_actctx); ```