summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-14 05:33:13 +0000
committermidipix <writeonce@midipix.org>2016-12-15 01:47:46 -0500
commitee679ad54e06fcb6f6385abd697c89de635139f7 (patch)
treedbb93d530f35cf7ae5e8fa81d0727e5d81f9232c
parentd8a635ad2bfb881a339d37f3abc21a77b49362a6 (diff)
downloadntapi-ee679ad54e06fcb6f6385abd697c89de635139f7.tar.bz2
ntapi-ee679ad54e06fcb6f6385abd697c89de635139f7.tar.xz
__ntapi_ldr_load_system_dll(): have size match strlen in nt_unicode_string.
-rw-r--r--include/ntapi/nt_ldr.h2
-rw-r--r--src/ldr/ntapi_ldr_load_system_dll.c2
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)
{