11/*
22Module : AutoHModule.h
3- Purpose: Defines the interface for a class which supports auto closing of a HMODULE via FreeLibrary and
3+ Purpose: Defines the interface for a class which supports auto closing of a HMODULE via FreeLibrary and
44 setting of the last Win32 error via SetLastError
55Created: PJN / 10-01-2013
66
@@ -10,11 +10,11 @@ All rights reserved.
1010
1111Copyright / Usage Details:
1212
13- You are allowed to include the source code in any product (commercial, shareware, freeware or otherwise)
14- when your product is released in binary form. You are allowed to modify the source code in any way you want
15- except you cannot modify the copyright details at the top of each module. If you want to distribute source
16- code with your application, then you are only allowed to distribute versions released by the author. This is
17- to maintain a single distribution point for the source code.
13+ You are allowed to include the source code in any product (commercial, shareware, freeware or otherwise)
14+ when your product is released in binary form. You are allowed to modify the source code in any way you want
15+ except you cannot modify the copyright details at the top of each module. If you want to distribute source
16+ code with your application, then you are only allowed to distribute versions released by the author. This is
17+ to maintain a single distribution point for the source code.
1818
1919*/
2020
@@ -33,17 +33,17 @@ class CAutoHModule
3333{
3434public:
3535// Constructors / Destructors
36- CAutoHModule () : m_hModule(NULL ),
36+ CAutoHModule () : m_hModule(NULL ),
3737 m_dwError (ERROR_SUCCESS)
3838 {
3939 }
4040
41- explicit CAutoHModule (HMODULE hModule) : m_hModule(hModule),
41+ explicit CAutoHModule (HMODULE hModule) : m_hModule(hModule),
4242 m_dwError(GetLastError())
4343 {
4444 }
4545
46- explicit CAutoHModule (HMODULE hModule, DWORD dwError) : m_hModule(hModule),
46+ explicit CAutoHModule (HMODULE hModule, DWORD dwError) : m_hModule(hModule),
4747 m_dwError(dwError)
4848 {
4949 }
@@ -58,7 +58,7 @@ class CAutoHModule
5858 SetLastError (m_dwError);
5959 }
6060
61- operator HMODULE ()
61+ operator HMODULE ()
6262 {
6363 return m_hModule;
6464 }
0 commit comments