From da3cfa96f27ac47f6193b1b631db510c234f9bdc Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 08 2017 07:51:02 +0000 Subject: __ntapi_ldr_load_system_dll(): use shell-style path for the system32 directory. --- diff --git a/src/ldr/ntapi_ldr_load_system_dll.c b/src/ldr/ntapi_ldr_load_system_dll.c index 29fc3b3..6265cdf 100644 --- a/src/ldr/ntapi_ldr_load_system_dll.c +++ b/src/ldr/ntapi_ldr_load_system_dll.c @@ -30,12 +30,16 @@ int32_t __stdcall __ntapi_ldr_load_system_dll( sysdir = (wchar16_t *)buffer; + /* shell-style dos path */ if ((status = __ntapi->tt_get_system_directory_dos_path( hsysdir, sysdir,sizeof(buffer), 0,0,&nt_sysdir))) return status; + sysdir = &sysdir[4]; + + /* image */ nt_image_name.strlen = base_name_size; nt_image_name.maxlen = base_name_size; nt_image_name.buffer = base_name;