Commit 4b18b0d1 authored by Jason Overland's avatar Jason Overland Committed by Alexandre Julliard

winecfg: Add owner to file picker dialogs, making them modal.

parent 4113fd87
......@@ -326,7 +326,7 @@ static void on_add_app_click(HWND dialog)
static const WCHAR pathC[] = { 'c',':','\\',0 };
OPENFILENAMEW ofn = { sizeof(OPENFILENAMEW),
0, /*hInst*/0, 0, NULL, 0, 0, NULL,
dialog, /*hInst*/0, 0, NULL, 0, 0, NULL,
0, NULL, 0, pathC, 0,
OFN_SHOWHELP | OFN_HIDEREADONLY | OFN_ENABLESIZING,
0, 0, NULL, 0, NULL };
......
......@@ -635,7 +635,7 @@ static void on_theme_install(HWND dialog)
title, sizeof (title) / sizeof (title[0]));
ofn.lStructSize = sizeof(OPENFILENAMEW);
ofn.hwndOwner = 0;
ofn.hwndOwner = dialog;
ofn.hInstance = 0;
ofn.lpstrFilter = filter;
ofn.lpstrCustomFilter = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment