comparison win/dw.c @ 1297:b8f6e7dd4544

Set dw_file_browse() initial directory to . on Windows unless... overridden by the defpath with path or filename and path.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 01 Nov 2011 12:21:33 +0000
parents 4bc8b6ffbe1e
children ca02c24e80c9
comparison
equal deleted inserted replaced
1296:40d62db77c90 1297:b8f6e7dd4544
10254 10254
10255 of.lStructSize = sizeof(OPENFILENAME); 10255 of.lStructSize = sizeof(OPENFILENAME);
10256 of.hwndOwner = HWND_DESKTOP; 10256 of.hwndOwner = HWND_DESKTOP;
10257 of.hInstance = DWInstance; 10257 of.hInstance = DWInstance;
10258 of.lpstrTitle = title; 10258 of.lpstrTitle = title;
10259 of.lpstrInitialDir = ".";
10259 if(att != INVALID_FILE_ATTRIBUTES && (att & FILE_ATTRIBUTE_DIRECTORY)) 10260 if(att != INVALID_FILE_ATTRIBUTES && (att & FILE_ATTRIBUTE_DIRECTORY))
10260 of.lpstrInitialDir = defpath; 10261 of.lpstrInitialDir = defpath;
10261 else if(defpath) 10262 else if(defpath)
10262 _to_dos(filenamebuf, defpath); 10263 _to_dos(filenamebuf, defpath);
10263 of.lpstrFile = filenamebuf; 10264 of.lpstrFile = filenamebuf;