Commit 287f1f0e authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Return 32-bit module in GetModuleHandle16() if appropriate.

parent 14eadf5a
......@@ -1399,15 +1399,15 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
return hModule;
}
/* FIXME: need to add ...
* 5. If the extension of 'name' is '.EXE' and the base filename of 'name'
* matches the base filename of the module filename of some 32-bit module:
* Return the corresponding 16-bit dummy module handle.
/* If the extension of 'name' is '.EXE' and the base filename of 'name'
* matches the base filename of the module filename of some 32-bit module:
* Return the corresponding 16-bit dummy module handle.
*/
if(len >= 4 && !strcasecmp(name+len-4, ".EXE"))
if (len >= 4 && !strcasecmp(name+len-4, ".EXE"))
{
FIXME(module, "Should return the 16-bit dummy module of some 32-bit module (if it exists)\n");
return 0;
HMODULE hModule = GetModuleHandleA( name );
if ( hModule )
return MapHModuleLS( hModule );
}
if (!strcmp(tmpstr,"MSDOS"))
......
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