From 3e609ebeae297011c8f70719ba2f68f2a9798d54 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 14 Dec 2016 01:10:09 +0000 Subject: code maintenance: provide smooth foreign toolchain support. --- src/guid/ntapi_tt_guid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/guid') diff --git a/src/guid/ntapi_tt_guid.c b/src/guid/ntapi_tt_guid.c index 6172214..3542aa3 100644 --- a/src/guid/ntapi_tt_guid.c +++ b/src/guid/ntapi_tt_guid.c @@ -145,7 +145,7 @@ int32_t __fastcall __ntapi_tt_utf16_string_to_guid( if (status != NT_STATUS_SUCCESS) return status; - guid->data4[0] = key / 0x100; + guid->data4[0] = key >> 8; guid->data4[1] = key % 0x100; status = __ntapi_tt_hex_utf16_to_uint16( @@ -155,7 +155,7 @@ int32_t __fastcall __ntapi_tt_utf16_string_to_guid( if (status != NT_STATUS_SUCCESS) return status; - guid->data4[2] = key / 0x100; + guid->data4[2] = key >> 8; guid->data4[3] = key % 0x100; status = __ntapi_tt_hex_utf16_to_uint16( @@ -165,7 +165,7 @@ int32_t __fastcall __ntapi_tt_utf16_string_to_guid( if (status != NT_STATUS_SUCCESS) return status; - guid->data4[4] = key / 0x100; + guid->data4[4] = key >> 8; guid->data4[5] = key % 0x100; status = __ntapi_tt_hex_utf16_to_uint16( @@ -175,7 +175,7 @@ int32_t __fastcall __ntapi_tt_utf16_string_to_guid( if (status != NT_STATUS_SUCCESS) return status; - guid->data4[6] = key / 0x100; + guid->data4[6] = key >> 8; guid->data4[7] = key % 0x100; return NT_STATUS_SUCCESS; -- cgit v1.2.3