* autoload.cc (dll_load): Avoid in_forkee test since this apparently fails even
when not forked.
This commit is contained in:
parent
96ef911a49
commit
7a3190f081
@ -1,3 +1,8 @@
|
||||
2011-03-01 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* autoload.cc (dll_load): Avoid in_forkee test since this apparently
|
||||
fails even when not forked.
|
||||
|
||||
2011-03-01 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 9.
|
||||
|
@ -216,8 +216,8 @@ static __inline bool
|
||||
dll_load (HANDLE& handle, WCHAR *name)
|
||||
{
|
||||
HANDLE h = LoadLibraryW (name);
|
||||
if (!h && in_forkee && handle && GetLastError () == ERROR_INVALID_ADDRESS
|
||||
&& wincap.use_dont_resolve_hack ())
|
||||
if (!h && handle && wincap.use_dont_resolve_hack ()
|
||||
&& GetLastError () == ERROR_INVALID_ADDRESS)
|
||||
h = LoadLibraryExW (name, NULL, DONT_RESOLVE_DLL_REFERENCES);
|
||||
if (!h)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user