summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntapi_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/ntapi_impl.h b/src/internal/ntapi_impl.h
index 4c26f55..791dbc1 100644
--- a/src/internal/ntapi_impl.h
+++ b/src/internal/ntapi_impl.h
@@ -145,7 +145,7 @@ int32_t __ntapi_tt_open_dir_utf8(void ** hfile, void * hat, const char * arg, in
int __ntapi_ipc_page_alloc(struct dalist_ex * dlist, void ** addr, size_t * alloc_size);
/* debug */
-#define __ntidx(x) (&(((ntapi_vtbl *)0)->x)) / sizeof(size_t)
+#define __ntidx(x) __offsetof(ntapi_vtbl,x) / sizeof(size_t)
#endif