summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-12-06 22:57:30 (GMT)
committermidipix <writeonce@midipix.org>2017-12-06 22:57:30 (GMT)
commit29ad40d41f536ee1a272d12e9762e96a2acadff6 (patch)
treedad79c4300d0d48882c37b89b17d14c7a0986fbd
parent55d3a8a0eaf27357d7a67f1be23f1ba957925993 (diff)
downloadpemagine-29ad40d41f.tar.bz2
pemagine-29ad40d41f.tar.xz
ldso: fix signatures related to zw_query_virtual_memory().HEADmain
-rw-r--r--include/pemagine/pemagine.h4
-rw-r--r--src/internal/pe_os.h2
-rw-r--r--src/ldso/pe_open_image_from_addr.c6
-rw-r--r--src/ldso/pe_open_physical_parent_directory.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/include/pemagine/pemagine.h b/include/pemagine/pemagine.h
index 3f374f8..283d579 100644
--- a/include/pemagine/pemagine.h
+++ b/include/pemagine/pemagine.h
@@ -292,7 +292,7 @@ pe_api int32_t pe_open_image_from_addr(
void ** himage,
void * addr,
uintptr_t * buffer,
- uint32_t buffer_size,
+ size_t bufsize,
uint32_t oattr,
uint32_t desired_access,
uint32_t share_access,
@@ -303,7 +303,7 @@ pe_api int32_t pe_open_physical_parent_directory(
void ** hparent,
void * href,
uintptr_t * buffer,
- uint32_t buffer_size,
+ uint32_t bufsize,
uint32_t oattr,
uint32_t desired_access,
uint32_t share_access,
diff --git a/src/internal/pe_os.h b/src/internal/pe_os.h
index 449433e..1544e44 100644
--- a/src/internal/pe_os.h
+++ b/src/internal/pe_os.h
@@ -138,7 +138,7 @@ typedef int32_t __stdcall os_zw_query_virtual_memory(
__in void * base_address,
__in int mem_info_class,
__out void * mem_info,
- __in uint32_t mem_info_length,
+ __in size_t mem_info_length,
__out uint32_t * returned_length __optional);
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;