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/MyWindows.cpp | |
parent | 5b39dc76f1bc82f941d5c800ab9f34407a06b53a (diff) | |
download | 7zip-fc662341e6f85da78ada0e443f6116b978f79f22.tar.gz 7zip-fc662341e6f85da78ada0e443f6116b978f79f22.tar.bz2 7zip-fc662341e6f85da78ada0e443f6116b978f79f22.zip |
24.0524.05
Diffstat (limited to 'CPP/Common/MyWindows.cpp')
-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 | ||