- Timestamp:
- Apr 17, 2002, 3:42:45 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comdlg32/filedlg95.c
r7137 r8279 1083 1083 { 1084 1084 LPITEMIDLIST pidlItemId = NULL; 1085 1085 CHAR *dopstr = NULL; 1086 1086 1087 FileOpenDlgInfos *fodInfos = (FileOpenDlgInfos *) lParam; 1087 1088 … … 1089 1090 fodInfos->ofnInfos->lpstrInitialDir, fodInfos->ofnInfos->lpstrFile); 1090 1091 1092 #ifdef __WIN32OS2__ 1093 /*@PF 1094 How can Wine miss this?? Very common situation for Windows apps! 1095 If InitialDir is NULL and we have full blown path in lpstrFile we set 1096 directory to it. 1097 1098 Q: What about Unicode? 1099 */ 1100 1101 if (fodInfos->ofnInfos->lpstrInitialDir == NULL && fodInfos->ofnInfos->lpstrFile && 1102 !PathIsRelativeA(fodInfos->ofnInfos->lpstrFile) && 1103 PathGetDriveNumberA(fodInfos->ofnInfos->lpstrFile) != -1) 1104 { 1105 dopstr = HEAP_strdupA(GetProcessHeap(), 0,fodInfos->ofnInfos->lpstrFile); 1106 *strrchr(dopstr,'\\') = '\0'; 1107 fodInfos->ofnInfos->lpstrInitialDir = dopstr; 1108 } 1109 #endif 1110 1091 1111 /* Get the initial directory pidl */ 1092 1093 1112 if(!(pidlItemId = GetPidlFromName(fodInfos->Shell.FOIShellFolder,fodInfos->ofnInfos->lpstrInitialDir))) 1094 1113 { … … 1098 1117 pidlItemId = GetPidlFromName(fodInfos->Shell.FOIShellFolder, path); 1099 1118 } 1100 1119 1101 1120 /* Initialise shell objects */ 1102 1121 FILEDLG95_SHELL_Init(hwnd); … … 1114 1133 COMDLG32_SHFree(pidlItemId); 1115 1134 1135 #ifdef __WIN32OS2__ 1136 /* Free dopstr */ 1137 if (dopstr) 1138 { 1139 fodInfos->ofnInfos->lpstrInitialDir = NULL; 1140 HEAP_free(dopstr); 1141 } 1142 #endif 1116 1143 return TRUE; 1117 1144 }
Note:
See TracChangeset
for help on using the changeset viewer.