diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -208,7 +208,7 @@ protected: | |||
| 208 | public: | 208 | public: |
| 209 | char* pszFile; | 209 | char* pszFile; |
| 210 | int nLine; | 210 | int nLine; |
| 211 | explicit CCriticalSection() { InitializeCriticalSection(&cs); } | 211 | explicit CCriticalSection() : pszFile(NULL), nLine(0) { InitializeCriticalSection(&cs); } |
| 212 | ~CCriticalSection() { DeleteCriticalSection(&cs); } | 212 | ~CCriticalSection() { DeleteCriticalSection(&cs); } |
| 213 | void Enter() { EnterCriticalSection(&cs); } | 213 | void Enter() { EnterCriticalSection(&cs); } |
| 214 | void Leave() { LeaveCriticalSection(&cs); } | 214 | void Leave() { LeaveCriticalSection(&cs); } |