- Timestamp:
- Nov 14, 2001, 1:52:30 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shelllink.c
r6709 r7336 226 226 static HRESULT WINAPI IPersistFile_fnLoad(IPersistFile* iface, LPCOLESTR pszFileName, DWORD dwMode) 227 227 { 228 _ICOM_THIS_From_IPersistFile(IShellLinkImpl, iface) 228 HRESULT hRet = E_FAIL; 229 LPSTR sFile; 230 231 _ICOM_THIS_From_IPersistFile(IShellLinkImpl, iface) 229 232 _IPersistStream_From_ICOM_THIS(IPersistStream, This) 230 233 231 LPSTR sFile = HEAP_strdupWtoA ( GetProcessHeap(), 0, pszFileName); 232 HRESULT hRet = E_FAIL; 234 #ifdef __WIN32OS2__ 235 STACK_strdupWtoA(pszFileName, sFile) 236 #else 237 sFile = HEAP_strdupWtoA ( GetProcessHeap(), 0, pszFileName); 238 #endif 233 239 234 240 TRACE("(%p, %s)\n",This, sFile); … … 242 248 if SUCCEEDED (IPersistStream_Load(StreamThis, This->lpFileStream)) 243 249 { 244 returnNOERROR;250 hRet = NOERROR; 245 251 } 246 252 } 247 253 254 #ifndef __WIN32OS2__ 255 // PH 2001-11-13 memory leak in WINE? 256 HeapFree( GetProcessHeap(), 0, sFile); 257 #endif 258 248 259 return hRet; 249 260 } … … 1130 1141 HeapFree(GetProcessHeap(), 0, This->sArgs); 1131 1142 1143 1132 1144 if (This->sWorkDir) 1133 1145 HeapFree(GetProcessHeap(), 0, This->sWorkDir);
Note:
See TracChangeset
for help on using the changeset viewer.