summaryrefslogtreecommitdiffhomepage
path: root/src/guid
diff options
context:
space:
mode:
Diffstat (limited to 'src/guid')
-rw-r--r--src/guid/ntapi_tt_guid.c8
1 files changed, 4 insertions, 4 deletions
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;