Commit 84fb1e1f authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Allow module with extensions in forward specifications.

parent 08d1398d
......@@ -328,13 +328,18 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward )
DWORD exp_size;
WINE_MODREF *wm;
WCHAR mod_name[32];
const char *end = strchr(forward, '.');
const char *end = strrchr(forward, '.');
FARPROC proc = NULL;
if (!end) return NULL;
if ((end - forward) * sizeof(WCHAR) >= sizeof(mod_name) - sizeof(dllW)) return NULL;
if ((end - forward) * sizeof(WCHAR) >= sizeof(mod_name)) return NULL;
ascii_to_unicode( mod_name, forward, end - forward );
memcpy( mod_name + (end - forward), dllW, sizeof(dllW) );
mod_name[end - forward] = 0;
if (!strchrW( mod_name, '.' ))
{
if ((end - forward) * sizeof(WCHAR) >= sizeof(mod_name) - sizeof(dllW)) return NULL;
memcpy( mod_name + (end - forward), dllW, sizeof(dllW) );
}
if (!(wm = find_basename_module( mod_name )))
{
......
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