From ee679ad54e06fcb6f6385abd697c89de635139f7 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 14 Dec 2016 05:33:13 +0000 Subject: __ntapi_ldr_load_system_dll(): have size match strlen in nt_unicode_string. --- include/ntapi/nt_ldr.h | 2 +- src/ldr/ntapi_ldr_load_system_dll.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ntapi/nt_ldr.h b/include/ntapi/nt_ldr.h index b438b34..0c15472 100644 --- a/include/ntapi/nt_ldr.h +++ b/include/ntapi/nt_ldr.h @@ -20,7 +20,7 @@ typedef int32_t __stdcall ntapi_ldr_unload_dll( typedef int32_t __stdcall ntapi_ldr_load_system_dll( __in void * hsysdir __optional, __in wchar16_t * base_name, - __in uint32_t base_name_size, + __in uint16_t base_name_size, __in uint32_t * image_flags __optional, __out void ** image_base); diff --git a/src/ldr/ntapi_ldr_load_system_dll.c b/src/ldr/ntapi_ldr_load_system_dll.c index 306d8e9..0e401a1 100644 --- a/src/ldr/ntapi_ldr_load_system_dll.c +++ b/src/ldr/ntapi_ldr_load_system_dll.c @@ -12,7 +12,7 @@ int32_t __stdcall __ntapi_ldr_load_system_dll( __in void * hsysdir __optional, __in wchar16_t * base_name, - __in uint32_t base_name_size, + __in uint16_t base_name_size, __in uint32_t * image_flags __optional, __out void ** image_base) { -- cgit v1.2.3