diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-14 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-15 23:55:04 +0500 |
commit | fc662341e6f85da78ada0e443f6116b978f79f22 (patch) | |
tree | 1be1cc402a7a9cbc18d4eeea6b141354c2d559e3 /CPP/Common/MyGuidDef.h | |
parent | 5b39dc76f1bc82f941d5c800ab9f34407a06b53a (diff) | |
download | 7zip-24.05.tar.gz 7zip-24.05.tar.bz2 7zip-24.05.zip |
24.0524.05
Diffstat (limited to 'CPP/Common/MyGuidDef.h')
-rw-r--r-- | CPP/Common/MyGuidDef.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CPP/Common/MyGuidDef.h b/CPP/Common/MyGuidDef.h index ab9993b..3aa5266 100644 --- a/CPP/Common/MyGuidDef.h +++ b/CPP/Common/MyGuidDef.h | |||
@@ -13,7 +13,7 @@ typedef struct { | |||
13 | UInt32 Data1; | 13 | UInt32 Data1; |
14 | UInt16 Data2; | 14 | UInt16 Data2; |
15 | UInt16 Data3; | 15 | UInt16 Data3; |
16 | unsigned char Data4[8]; | 16 | Byte Data4[8]; |
17 | } GUID; | 17 | } GUID; |
18 | 18 | ||
19 | #ifdef __cplusplus | 19 | #ifdef __cplusplus |
@@ -32,7 +32,7 @@ typedef GUID CLSID; | |||
32 | inline int operator==(REFGUID g1, REFGUID g2) | 32 | inline int operator==(REFGUID g1, REFGUID g2) |
33 | { | 33 | { |
34 | for (unsigned i = 0; i < sizeof(g1); i++) | 34 | for (unsigned i = 0; i < sizeof(g1); i++) |
35 | if (((const unsigned char *)&g1)[i] != ((const unsigned char *)&g2)[i]) | 35 | if (((const Byte *)&g1)[i] != ((const Byte *)&g2)[i]) |
36 | return 0; | 36 | return 0; |
37 | return 1; | 37 | return 1; |
38 | } | 38 | } |