Mikołaj Zalewski : regedit: Remove custom filter from open/save dialogs.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 23 16:36:12 CDT 2006
Module: wine
Branch: master
Commit: 798a54f938f4057603223a05075e66c9963f4c58
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=798a54f938f4057603223a05075e66c9963f4c58
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Wed Aug 23 14:09:46 2006 +0200
regedit: Remove custom filter from open/save dialogs.
---
programs/regedit/framewnd.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index 216ed89..bac86ee 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -258,8 +258,6 @@ static UINT_PTR CALLBACK ImportRegistryF
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,
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;
More information about the wine-cvs
mailing list