summaryrefslogtreecommitdiffhomepage
path: root/src/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/pe_open_image_from_addr.c6
-rw-r--r--src/ldso/pe_open_physical_parent_directory.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ldso/pe_open_image_from_addr.c b/src/ldso/pe_open_image_from_addr.c
index 810503c..b8a1845 100644
--- a/src/ldso/pe_open_image_from_addr.c
+++ b/src/ldso/pe_open_image_from_addr.c
@@ -18,7 +18,7 @@ pe_api int32_t pe_open_image_from_addr(
__out void ** himage,
__in void * addr,
__out uintptr_t * buffer,
- __in uint32_t buffer_size,
+ __in size_t bufsize,
__in uint32_t oattr,
__in uint32_t desired_access,
__in uint32_t share_access,
@@ -37,7 +37,7 @@ pe_api int32_t pe_open_image_from_addr(
/* init */
path = (struct os_memory_section_name *)buffer;
path->section_name.strlen = 0;
- path->section_name.maxlen = (uint16_t)(buffer_size - sizeof(struct pe_unicode_str));
+ path->section_name.maxlen = (uint16_t)(bufsize - sizeof(struct pe_unicode_str));
path->section_name.buffer = path->section_name_buffer;
if (!(hntdll = pe_get_ntdll_module_handle()))
@@ -57,7 +57,7 @@ pe_api int32_t pe_open_image_from_addr(
addr,
OS_MEMORY_SECTION_NAME,
buffer,
- buffer_size,
+ bufsize,
&len)))
return status;
diff --git a/src/ldso/pe_open_physical_parent_directory.c b/src/ldso/pe_open_physical_parent_directory.c
index 55910d6..1eb6936 100644
--- a/src/ldso/pe_open_physical_parent_directory.c
+++ b/src/ldso/pe_open_physical_parent_directory.c
@@ -13,7 +13,7 @@ int32_t pe_open_physical_parent_directory(
__out void ** hparent,
__in void * href,
__out uintptr_t * buffer,
- __in uint32_t buffer_size,
+ __in uint32_t bufsize,
__in uint32_t oattr,
__in uint32_t desired_access,
__in uint32_t share_access,
@@ -51,7 +51,7 @@ int32_t pe_open_physical_parent_directory(
href,
OS_OBJECT_NAME_INFORMATION,
path,
- buffer_size,
+ bufsize,
&len)))
return status;