diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -199,7 +199,7 @@ protected: | |||
| 199 | public: | 199 | public: |
| 200 | char* pszFile; | 200 | char* pszFile; |
| 201 | int nLine; | 201 | int nLine; |
| 202 | explicit CCriticalSection() { InitializeCriticalSection(&cs); } | 202 | explicit CCriticalSection() : pszFile(NULL), nLine(0) { InitializeCriticalSection(&cs); } |
| 203 | ~CCriticalSection() { DeleteCriticalSection(&cs); } | 203 | ~CCriticalSection() { DeleteCriticalSection(&cs); } |
| 204 | void Enter() { EnterCriticalSection(&cs); } | 204 | void Enter() { EnterCriticalSection(&cs); } |
| 205 | void Leave() { LeaveCriticalSection(&cs); } | 205 | void Leave() { LeaveCriticalSection(&cs); } |