Re: urlmon: Delay-load cabinet.dll as native urlmon doesn't import it.
Aug. 4, 2006
8:31 a.m.
Robert Shearman <rob(a)codeweavers.com> writes:
+ if (!hCabinet) return HRESULT_FROM_WIN32(GetLastError()); + pExtract = GetProcAddress(hCabinet, "Extract"); + if (!pExtract) return HRESULT_FROM_WIN32(GetLastError()); + + hr = pExtract(dest, szCabName); + FreeLibrary(hCabinet); + return hr; +}
Unless the app depends on it, it's usually better to not free the library on each call, otherwise repeated calls to the function will be very expensive. You can free the library in PROCESS_DETACH. -- Alexandre Julliard julliard(a)winehq.org
7176
Age (days ago)
7176
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard