mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 06:24:13 -06:00
4.59 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
3901bf0ab8
commit
173c07e166
+8
-4
@@ -8,6 +8,8 @@
|
||||
namespace NWindows {
|
||||
namespace NCOM {
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
class CComInitializer
|
||||
{
|
||||
public:
|
||||
@@ -22,10 +24,10 @@ public:
|
||||
bool _mustBeReleased;
|
||||
CStgMedium(): _mustBeReleased(false) {}
|
||||
~CStgMedium() { Free(); }
|
||||
void Free()
|
||||
{
|
||||
if(_mustBeReleased)
|
||||
ReleaseStgMedium(&_object);
|
||||
void Free()
|
||||
{
|
||||
if(_mustBeReleased)
|
||||
ReleaseStgMedium(&_object);
|
||||
_mustBeReleased = false;
|
||||
}
|
||||
const STGMEDIUM* operator->() const { return &_object;}
|
||||
@@ -33,6 +35,8 @@ public:
|
||||
STGMEDIUM* operator&() { return &_object; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//////////////////////////////////
|
||||
// GUID <--> String Conversions
|
||||
UString GUIDToStringW(REFGUID guid);
|
||||
|
||||
Reference in New Issue
Block a user