summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ldr/ntapi_ldr_load_system_dll.c4
1 files changed, 4 insertions, 0 deletions
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;