summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-08-29 03:27:24 +0000
committermidipix <writeonce@midipix.org>2019-08-29 03:27:24 +0000
commitf96e1d2fa751d70baccb09fcbc052ea59854d685 (patch)
treef8797b4d23f4f813f6e8e66cb3f762dc2f6a5818 /src/internal
parent8344385d981142f4e9ac8328befffb275d3ab411 (diff)
downloadntapi-f96e1d2fa751d70baccb09fcbc052ea59854d685.tar.bz2
ntapi-f96e1d2fa751d70baccb09fcbc052ea59854d685.tar.xz
__ntapi_tt_parse_cmd_line_args_utf16(): arg_count: fix alignment check logic.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntapi_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/internal/ntapi_impl.h b/src/internal/ntapi_impl.h
index cde1dc7..beb72a6 100644
--- a/src/internal/ntapi_impl.h
+++ b/src/internal/ntapi_impl.h
@@ -24,6 +24,7 @@
/* helper macros */
#define __NT_ROUND_UP_TO_POWER_OF_2(x,y)(x + (y-1)) & ~(y-1)
#define __NT_IS_MISALIGNED_BUFFER(x) ((!(uintptr_t)x) || ((uintptr_t)x % sizeof(size_t)))
+#define __NT_IS_MISALIGNED_INT_BUFFER(x)((!(uintptr_t)x) || ((uintptr_t)x % sizeof(int)))
#define __NT_IS_MISALIGNED_LENGTH(x) (x % sizeof(size_t))
#define __NT_FILE_SYNC_IO (NT_FILE_SYNCHRONOUS_IO_ALERT|NT_FILE_SYNCHRONOUS_IO_NONALERT)