- Timestamp:
- May 12, 2000, 8:07:43 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comdlg32/filedlg95.c
r3511 r3524 1 /* $Id: filedlg95.c,v 1. 9 2000-05-10 13:12:46sandervl Exp $*/1 /* $Id: filedlg95.c,v 1.10 2000-05-12 18:07:43 sandervl Exp $*/ 2 2 /* 3 3 * COMMDLG - File Open Dialogs Win95 look and feel … … 289 289 /* Replace the NULL lpstrInitialDir by the current folder */ 290 290 lpstrInitialDir = ofn->lpstrInitialDir; 291 if(!lpstrInitialDir )291 if(!lpstrInitialDir || *lpstrInitialDir == 0) 292 292 { 293 293 fodInfos->ofnInfos->lpstrInitialDir = MemAlloc(MAX_PATH); … … 429 429 // convert initial dir & title (if necessary) 430 430 lpstrInitialDir = (LPWSTR)ofn->lpstrInitialDir; 431 if(lpstrInitialDir ) {431 if(lpstrInitialDir && *lpstrInitialDir != 0) { 432 432 ofn->lpstrInitialDir = MemAlloc(lstrlenW(ofn->lpstrInitialDir)+1); 433 433 lstrcpyWtoA((LPSTR)ofn->lpstrInitialDir, lpstrInitialDir); 434 434 } 435 else 436 /* Replace the NULL lpstrInitialDir by the current folder */ 437 if(!lpstrInitialDir || *lpstrInitialDir == 0) 438 { 439 ofn->lpstrInitialDir = MemAlloc(MAX_PATH); 440 GetCurrentDirectoryA(MAX_PATH,(LPSTR)ofn->lpstrInitialDir); 441 } 442 435 443 lpstrTitle = (LPWSTR)ofn->lpstrTitle; 436 444 if(lpstrTitle) {
Note:
See TracChangeset
for help on using the changeset viewer.