mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
regedit: Remove custom filter from open/save dialogs.
This commit is contained in:
parent
343153e2e5
commit
798a54f938
@ -258,8 +258,6 @@ static UINT_PTR CALLBACK ImportRegistryFile_OFNHookProc(HWND hdlg, UINT uiMsg, W
|
||||
return 0L;
|
||||
}
|
||||
|
||||
#define MAX_CUSTOM_FILTER_SIZE 50
|
||||
TCHAR CustomFilterBuffer[MAX_CUSTOM_FILTER_SIZE];
|
||||
TCHAR FileNameBuffer[_MAX_PATH];
|
||||
TCHAR FileTitleBuffer[_MAX_PATH];
|
||||
|
||||
@ -271,9 +269,7 @@ static BOOL InitOpenFileName(HWND hWnd, OPENFILENAME* pofn)
|
||||
pofn->hInstance = hInst;
|
||||
|
||||
pofn->lpstrFilter = _T("Registration Files\0*.reg\0Win9x/NT4 Registration Files (REGEDIT4)\0*.reg\0All Files (*.*)\0*.*\0\0");
|
||||
pofn->lpstrCustomFilter = CustomFilterBuffer;
|
||||
pofn->nMaxCustFilter = MAX_CUSTOM_FILTER_SIZE;
|
||||
pofn->nFilterIndex = 0;
|
||||
pofn->nFilterIndex = 1;
|
||||
pofn->lpstrFile = FileNameBuffer;
|
||||
pofn->nMaxFile = _MAX_PATH;
|
||||
pofn->lpstrFileTitle = FileTitleBuffer;
|
||||
|
Loading…
Reference in New Issue
Block a user