OLD | NEW |
1 #include "..\engine\stdafx.h" | |
2 | |
3 #include "AutoHandle.h" | 1 #include "AutoHandle.h" |
4 | 2 |
5 AutoHandle::AutoHandle() | 3 AutoHandle::AutoHandle() |
6 { | 4 { |
7 } | 5 } |
8 | 6 |
9 AutoHandle::AutoHandle(HANDLE handle) : handle(handle) | 7 AutoHandle::AutoHandle(HANDLE handle) : handle(handle) |
10 { | 8 { |
11 } | 9 } |
12 | 10 |
13 AutoHandle::~AutoHandle() | 11 AutoHandle::~AutoHandle() |
14 { | 12 { |
15 CloseHandle(handle); | 13 CloseHandle(handle); |
16 } | 14 } |
17 | 15 |
18 HANDLE AutoHandle::get() | 16 HANDLE AutoHandle::get() |
19 { | 17 { |
20 return handle; | 18 return handle; |
21 } | 19 } |
OLD | NEW |