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

This commit is contained in:
Jason Overland 2015-04-05 22:44:48 -07:00 committed by Alexandre Julliard
parent 4113fd875c
commit 4b18b0d10e
2 changed files with 2 additions and 2 deletions

View File

@ -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 };

View File

@ -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;