summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-19 18:53:24 -0500
committermidipix <writeonce@midipix.org>2016-12-19 18:55:17 -0500
commit7f8d50abe18471c5a79951ad13b63d1bc125c47e (patch)
tree9eed3f42999bd37f1295bc8b85255b6d24c2b0ad /src/process
parent34d90026b95505886f419c79076fe2916d6f8b7a (diff)
downloadntapi-7f8d50abe18471c5a79951ad13b63d1bc125c47e.tar.bz2
ntapi-7f8d50abe18471c5a79951ad13b63d1bc125c47e.tar.xz
32/64-bit code path: use __SIZEOF_POINTER__ in anticipation of arm support.
Diffstat (limited to 'src/process')
-rw-r--r--src/process/ntapi_tt_create_native_process_v1.c4
-rw-r--r--src/process/ntapi_tt_create_native_process_v2.c4
-rw-r--r--src/process/ntapi_tt_create_remote_runtime_data.c4
-rw-r--r--src/process/ntapi_tt_get_runtime_data.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/process/ntapi_tt_create_native_process_v1.c b/src/process/ntapi_tt_create_native_process_v1.c
index f17f236..a44ed4f 100644
--- a/src/process/ntapi_tt_create_native_process_v1.c
+++ b/src/process/ntapi_tt_create_native_process_v1.c
@@ -52,11 +52,11 @@ int32_t __stdcall __ntapi_tt_create_native_process_v1(nt_create_process_params *
size_t cmd_line_runtime_buffer_size;
int fresume_thread;
- #if defined (__NT32)
+ #if (__SIZEOF_POINTER__ == 4)
wchar16_t runtime_arg[12] = {
' ','-','r',' ',
'i','n','t','e','g','r','a','l'};
- #elif defined (__NT64)
+ #elif (__SIZEOF_POINTER__ == 8)
wchar16_t runtime_arg[20] = {
' ','-','r',' ',
'i','n','t','e','g','r','a','l',
diff --git a/src/process/ntapi_tt_create_native_process_v2.c b/src/process/ntapi_tt_create_native_process_v2.c
index 2d058a0..f28a522 100644
--- a/src/process/ntapi_tt_create_native_process_v2.c
+++ b/src/process/ntapi_tt_create_native_process_v2.c
@@ -49,11 +49,11 @@ int32_t __stdcall __ntapi_tt_create_native_process_v2(
nt_create_process_ext_param file_info;
} ext_params;
- #if defined (__NT32)
+ #if (__SIZEOF_POINTER__ == 4)
wchar16_t runtime_arg[12] = {
' ','-','r',' ',
'i','n','t','e','g','r','a','l'};
- #elif defined (__NT64)
+ #elif (__SIZEOF_POINTER__ == 8)
wchar16_t runtime_arg[20] = {
' ','-','r',' ',
'i','n','t','e','g','r','a','l',
diff --git a/src/process/ntapi_tt_create_remote_runtime_data.c b/src/process/ntapi_tt_create_remote_runtime_data.c
index b3809b0..7b85893 100644
--- a/src/process/ntapi_tt_create_remote_runtime_data.c
+++ b/src/process/ntapi_tt_create_remote_runtime_data.c
@@ -26,10 +26,10 @@ int32_t __stdcall __ntapi_tt_create_remote_runtime_data(
nt_runtime_data * rtdata;
void * srv_ready;
- #if defined (__NT32)
+ #if (__SIZEOF_POINTER__ == 4)
wchar16_t runtime_arg[8] = {
'i','n','t','e','g','r','a','l'};
- #elif defined (__NT64)
+ #elif (__SIZEOF_POINTER__ == 8)
wchar16_t runtime_arg[16] = {
'i','n','t','e','g','r','a','l',
'-','r','u','n','t','i','m','e'};
diff --git a/src/process/ntapi_tt_get_runtime_data.c b/src/process/ntapi_tt_get_runtime_data.c
index 5dc2366..60cdf17 100644
--- a/src/process/ntapi_tt_get_runtime_data.c
+++ b/src/process/ntapi_tt_get_runtime_data.c
@@ -10,11 +10,11 @@
#include <ntapi/ntapi.h>
#include "ntapi_impl.h"
-#if defined (__NT32)
+#if (__SIZEOF_POINTER__ == 4)
static wchar16_t runtime_arg[12] = {
' ','-','r',' ',
'i','n','t','e','g','r','a','l'};
-#elif defined (__NT64)
+#elif (__SIZEOF_POINTER__ == 8)
static wchar16_t runtime_arg[20] = {
' ','-','r',' ',
'i','n','t','e','g','r','a','l',