Fix builtin NE module refcounting of 32bit parent.
This commit is contained in:
parent
114c9077d6
commit
1cf04bd70a
@ -1167,15 +1167,13 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
|
||||
|
||||
if (strlen(basename) < sizeof(dllname)-4)
|
||||
{
|
||||
int file_exists;
|
||||
|
||||
strcpy( dllname, basename );
|
||||
p = strrchr( dllname, '.' );
|
||||
if (!p) strcat( dllname, ".dll" );
|
||||
for (p = dllname; *p; p++) if (*p >= 'A' && *p <= 'Z') *p += 32;
|
||||
|
||||
if (!(descr = find_dll_descr( dllname )))
|
||||
{
|
||||
int file_exists;
|
||||
|
||||
if (wine_dll_get_owner( dllname, owner, sizeof(owner), &file_exists ) == -1)
|
||||
{
|
||||
if (file_exists) return 21; /* it may be a Win32 module then */
|
||||
@ -1204,7 +1202,6 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (descr)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user