diff options
author | midipix <writeonce@midipix.org> | 2016-12-14 01:10:09 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-15 01:47:35 -0500 |
commit | 3e609ebeae297011c8f70719ba2f68f2a9798d54 (patch) | |
tree | f8b9238c25de839ea270b81d42880e89d1f95c3e /src/guid | |
parent | 95d67cc70c652076dbe261d195a27ddfbc6bbb3a (diff) | |
download | ntapi-3e609ebeae297011c8f70719ba2f68f2a9798d54.tar.bz2 ntapi-3e609ebeae297011c8f70719ba2f68f2a9798d54.tar.xz |
code maintenance: provide smooth foreign toolchain support.
Diffstat (limited to 'src/guid')
-rw-r--r-- | src/guid/ntapi_tt_guid.c | 8 |
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; |