- Timestamp:
- Oct 2, 2001, 7:14:57 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/regsvr32.cpp
r6855 r6929 1 /* $Id: regsvr32.cpp,v 1. 6 2001-09-28 07:49:05sandervl Exp $ */1 /* $Id: regsvr32.cpp,v 1.7 2001-10-02 17:14:57 sandervl Exp $ */ 2 2 /* 3 3 * RegSvr32 for OS/2 … … 180 180 static HRESULT load_object(void) 181 181 { 182 //SvL: Use LoadLibrary here, not CoLoadLibrary 183 // Some dlls (divx codec) call CoFreeUnusedLibraries which unloads our dll 184 // if we use CoLoadLibrary 185 // NT's regsvr32 doesn't use CoLoadLibrary either. 186 #if 1 187 hdlObject = LoadLibraryA(szFile); 188 #else 182 189 LPOLESTR libnameW = (LPOLESTR)HEAP_strdupAtoW(GetProcessHeap(), 0, szFile); 183 hdlObject = CoLoadLibrary(libnameW, TRUE);190 hdlObject = LoadLibraryW(libnameW); 184 191 HeapFree(GetProcessHeap(), 0, libnameW); 192 #endif 185 193 if (hdlObject == 0) 186 194 return report_err(S_FALSE, "Failed to load '%s'", szFile); … … 238 246 static HRESULT unload_object(void) 239 247 { 248 #if 1 249 FreeLibrary(hdlObject); 250 #else 240 251 CoFreeLibrary(hdlObject); 252 #endif 241 253 return S_OK; 242 254 }
Note:
See TracChangeset
for help on using the changeset viewer.