mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 01:14:47 +00:00
winecfg: Add owner to file picker dialogs, making them modal.
This commit is contained in:
parent
4113fd875c
commit
4b18b0d10e
|
@ -326,7 +326,7 @@ static void on_add_app_click(HWND dialog)
|
||||||
static const WCHAR pathC[] = { 'c',':','\\',0 };
|
static const WCHAR pathC[] = { 'c',':','\\',0 };
|
||||||
|
|
||||||
OPENFILENAMEW ofn = { sizeof(OPENFILENAMEW),
|
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,
|
0, NULL, 0, pathC, 0,
|
||||||
OFN_SHOWHELP | OFN_HIDEREADONLY | OFN_ENABLESIZING,
|
OFN_SHOWHELP | OFN_HIDEREADONLY | OFN_ENABLESIZING,
|
||||||
0, 0, NULL, 0, NULL };
|
0, 0, NULL, 0, NULL };
|
||||||
|
|
|
@ -635,7 +635,7 @@ static void on_theme_install(HWND dialog)
|
||||||
title, sizeof (title) / sizeof (title[0]));
|
title, sizeof (title) / sizeof (title[0]));
|
||||||
|
|
||||||
ofn.lStructSize = sizeof(OPENFILENAMEW);
|
ofn.lStructSize = sizeof(OPENFILENAMEW);
|
||||||
ofn.hwndOwner = 0;
|
ofn.hwndOwner = dialog;
|
||||||
ofn.hInstance = 0;
|
ofn.hInstance = 0;
|
||||||
ofn.lpstrFilter = filter;
|
ofn.lpstrFilter = filter;
|
||||||
ofn.lpstrCustomFilter = NULL;
|
ofn.lpstrCustomFilter = NULL;
|
||||||
|
|
Loading…
Reference in a new issue