diff options
author | nijtmans <nijtmans> | 2010-04-19 11:05:32 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-04-19 11:05:32 (GMT) |
commit | 40300691987acb670dc62904be9b327599ac90c2 (patch) | |
tree | 445a72453e505c7f754ddacd15b7a3307a40d674 /win | |
parent | d5d09dfa63121e855b823ca7ff91239793a1ae57 (diff) | |
download | tk-40300691987acb670dc62904be9b327599ac90c2.zip tk-40300691987acb670dc62904be9b327599ac90c2.tar.gz tk-40300691987acb670dc62904be9b327599ac90c2.tar.bz2 |
Fix [Bug 2987995]: Tk_GetOpenFile returns garbage under described circumstances
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinDialog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index 81d795c..9e2ebe2 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinDialog.c,v 1.70 2010/02/05 22:45:03 nijtmans Exp $ + * RCS: @(#) $Id: tkWinDialog.c,v 1.71 2010/04/19 11:05:33 nijtmans Exp $ * */ @@ -592,7 +592,7 @@ GetFileNameW( const char *extension = NULL, *filter = NULL, *title = NULL; Tk_Window tkwin = clientData; HWND hWnd; - Tcl_Obj *filterObj=NULL, *initialTypeObj=NULL, *typeVariableObj=NULL; + Tcl_Obj *filterObj = NULL, *initialTypeObj = NULL, *typeVariableObj = NULL; Tcl_DString utfFilterString, utfDirString, ds; Tcl_DString extString, filterString, dirString, titleString; Tcl_Encoding unicodeEncoding = TkWinGetUnicodeEncoding(); @@ -986,7 +986,7 @@ OFNHookProcW( } else if (uMsg == WM_NOTIFY) { OFNOTIFYW *notifyPtr = (OFNOTIFYW *) lParam; - if (notifyPtr->hdr.code == CDN_SELCHANGE) { + if (notifyPtr->hdr.code == CDN_FILEOK) { int dirsize, selsize; WCHAR *buffer; int buffersize; @@ -1044,7 +1044,7 @@ OFNHookProcW( } else { buffer[selsize] = '\0'; /* Second NULL terminator. */ - /* + /* * Replace directory terminating NULL with a backslash. */ @@ -1517,7 +1517,7 @@ OFNHookProcA( } else if (uMsg == WM_NOTIFY) { OFNOTIFY *notifyPtr = (OFNOTIFY *) lParam; - if (notifyPtr->hdr.code == CDN_SELCHANGE) { + if (notifyPtr->hdr.code == CDN_FILEOK) { int dirsize, selsize; char *buffer; int buffersize; |