Commit 1cf04bd7 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix builtin NE module refcounting of 32bit parent.

parent 114c9077
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment