summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-30 19:36:32 -0400
committermidipix <writeonce@midipix.org>2016-06-30 21:04:07 -0400
commit47cc6e11b1911d2acc60bfae6d6ef446b41bb801 (patch)
treef0e2b622e394253aa3cc817b8950216214e85b97 /src/internal
parent3e65dd723c030ddbac5729e690bbb057cb29c57e (diff)
downloadntapi-47cc6e11b1911d2acc60bfae6d6ef446b41bb801.tar.bz2
ntapi-47cc6e11b1911d2acc60bfae6d6ef446b41bb801.tar.xz
ntapi_vtbl: string functions: code maintenance.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntapi.c4
-rw-r--r--src/internal/ntapi_fnapi.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/internal/ntapi.c b/src/internal/ntapi.c
index 70a9de5..818f15d 100644
--- a/src/internal/ntapi.c
+++ b/src/internal/ntapi.c
@@ -139,6 +139,8 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl)
/* alternate implementation */
__ntapi->rtl_init_unicode_string = __ntapi_tt_init_unicode_string_from_utf16;
+ __ntapi->strlen = __ntapi_tt_string_null_offset_multibyte;
+ __ntapi->wcslen = __ntapi_tt_wcslen;
/* extension functions */
/* nt_object.h */
@@ -171,8 +173,6 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl)
__ntapi->tt_strcmp_utf16 = __ntapi_tt_strcmp_utf16;
__ntapi->tt_strncmp_multibyte = __ntapi_tt_strncmp_multibyte;
__ntapi->tt_strncmp_utf16 = __ntapi_tt_strncmp_utf16;
- __ntapi->strlen = __ntapi_tt_string_null_offset_multibyte;
- __ntapi->wcslen = __ntapi_wcslen;
__ntapi->tt_aligned_block_memset = __ntapi_tt_aligned_block_memset;
__ntapi->tt_aligned_block_memcpy = __ntapi_tt_aligned_block_memcpy;
__ntapi->tt_memcpy_utf16 = __ntapi_tt_memcpy_utf16;
diff --git a/src/internal/ntapi_fnapi.h b/src/internal/ntapi_fnapi.h
index 6dbb87d..44c4ce6 100644
--- a/src/internal/ntapi_fnapi.h
+++ b/src/internal/ntapi_fnapi.h
@@ -57,7 +57,6 @@ ntapi_tt_strcmp_multibyte __ntapi_tt_strcmp_multibyte;
ntapi_tt_strcmp_utf16 __ntapi_tt_strcmp_utf16;
ntapi_tt_strncmp_multibyte __ntapi_tt_strncmp_multibyte;
ntapi_tt_strncmp_utf16 __ntapi_tt_strncmp_utf16;
-ntapi_wcslen __ntapi_wcslen;
ntapi_tt_aligned_block_memset __ntapi_tt_aligned_block_memset;
ntapi_tt_aligned_block_memcpy __ntapi_tt_aligned_block_memcpy;
ntapi_tt_init_unicode_string_from_utf16 __ntapi_tt_init_unicode_string_from_utf16;
@@ -77,6 +76,7 @@ ntapi_tt_uint16_to_hex_utf8 __ntapi_tt_uint16_to_hex_utf8;
ntapi_tt_uint32_to_hex_utf8 __ntapi_tt_uint32_to_hex_utf8;
ntapi_tt_uint64_to_hex_utf8 __ntapi_tt_uint64_to_hex_utf8;
ntapi_tt_uintptr_to_hex_utf8 __ntapi_tt_uintptr_to_hex_utf8;
+ntapi_wcslen __ntapi_tt_wcslen;
/* nt_guid.h */
ntapi_tt_guid_to_utf16_string __ntapi_tt_guid_to_utf16_string;