summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/lzma/CPP/Windows/Handle.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lzma/CPP/Windows/Handle.h')
-rw-r--r--3rdparty/lzma/CPP/Windows/Handle.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/3rdparty/lzma/CPP/Windows/Handle.h b/3rdparty/lzma/CPP/Windows/Handle.h
index bb7cb705da0..6ae09ecf53c 100644
--- a/3rdparty/lzma/CPP/Windows/Handle.h
+++ b/3rdparty/lzma/CPP/Windows/Handle.h
@@ -1,11 +1,13 @@
// Windows/Handle.h
-#ifndef __WINDOWS_HANDLE_H
-#define __WINDOWS_HANDLE_H
+#ifndef ZIP7_INC_WINDOWS_HANDLE_H
+#define ZIP7_INC_WINDOWS_HANDLE_H
+
+#include "../Common/MyWindows.h"
namespace NWindows {
-class CHandle
+class CHandle MY_UNCOPYABLE
{
protected:
HANDLE _handle;
@@ -26,7 +28,7 @@ public:
void Attach(HANDLE handle) { _handle = handle; }
HANDLE Detach()
{
- HANDLE handle = _handle;
+ const HANDLE handle = _handle;
_handle = NULL;
return handle;
}