diff options
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 | } |