TdzDllLoader.Create raises EOSError instead of the documented EDllLoadError
Brought to you by:
twm
TdzCustomDllLoader.Create(DllName) in u_dzCustomDllLoader documents @raises EDllLoadError if the DLL cannot be loaded, but TdzDllLoader.LoadDll in u_dzDllLoader raises EOSError through RaiseLastOsErrorEx. TdzResourceDllLoader does raise EDllLoadError, and TDzDllApi.TryLoadDllFromResource relies on that.
Measured with Delphi 12 (Win32): TdzDllLoader.Create('dzNoSuchDll.dll') raises
EOSError: Could not load dzNoSuchDll.dll. Error The specified module could not be found (126)
Same kind of problem as [bugs:#55] for the entry points.
Fixed in revision #2426