diff options
author | midipix <writeonce@midipix.org> | 2017-12-06 17:57:30 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-12-06 17:57:30 -0500 |
commit | 29ad40d41f536ee1a272d12e9762e96a2acadff6 (patch) | |
tree | dad79c4300d0d48882c37b89b17d14c7a0986fbd /src/ldso/pe_open_image_from_addr.c | |
parent | 55d3a8a0eaf27357d7a67f1be23f1ba957925993 (diff) | |
download | pemagine-29ad40d41f.tar.bz2 pemagine-29ad40d41f.tar.xz |
ldso: fix signatures related to zw_query_virtual_memory().
Diffstat (limited to 'src/ldso/pe_open_image_from_addr.c')
-rw-r--r-- | src/ldso/pe_open_image_from_addr.c | 6 |
1 files changed, 3 insertions, 3 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; |