diff options
Diffstat (limited to '')
-rw-r--r-- | CPP/Common/MyWindows.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CPP/Common/MyWindows.cpp b/CPP/Common/MyWindows.cpp index ae284eb..a1dfbef 100644 --- a/CPP/Common/MyWindows.cpp +++ b/CPP/Common/MyWindows.cpp | |||
@@ -88,21 +88,21 @@ BSTR SysAllocString(const OLECHAR *s) | |||
88 | void SysFreeString(BSTR bstr) | 88 | void SysFreeString(BSTR bstr) |
89 | { | 89 | { |
90 | if (bstr) | 90 | if (bstr) |
91 | FreeForBSTR((CBstrSizeType *)bstr - 1); | 91 | FreeForBSTR((CBstrSizeType *)(void *)bstr - 1); |
92 | } | 92 | } |
93 | 93 | ||
94 | UINT SysStringByteLen(BSTR bstr) | 94 | UINT SysStringByteLen(BSTR bstr) |
95 | { | 95 | { |
96 | if (!bstr) | 96 | if (!bstr) |
97 | return 0; | 97 | return 0; |
98 | return *((CBstrSizeType *)bstr - 1); | 98 | return *((CBstrSizeType *)(void *)bstr - 1); |
99 | } | 99 | } |
100 | 100 | ||
101 | UINT SysStringLen(BSTR bstr) | 101 | UINT SysStringLen(BSTR bstr) |
102 | { | 102 | { |
103 | if (!bstr) | 103 | if (!bstr) |
104 | return 0; | 104 | return 0; |
105 | return *((CBstrSizeType *)bstr - 1) / (UINT)sizeof(OLECHAR); | 105 | return *((CBstrSizeType *)(void *)bstr - 1) / (UINT)sizeof(OLECHAR); |
106 | } | 106 | } |
107 | 107 | ||
108 | 108 | ||