diff options
Diffstat (limited to 'plugins/HTTPServer/src/FileShareNode.h')
-rw-r--r-- | plugins/HTTPServer/src/FileShareNode.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/HTTPServer/src/FileShareNode.h b/plugins/HTTPServer/src/FileShareNode.h index 706a31f093..bea6bf9d49 100644 --- a/plugins/HTTPServer/src/FileShareNode.h +++ b/plugins/HTTPServer/src/FileShareNode.h @@ -73,7 +73,7 @@ private: };
extern CLFileShareNode * pclFirstNode;
-extern CRITICAL_SECTION csFileShareListAccess;
+extern mir_cs csFileShareListAccess;
class CLFileShareListAccess {
bool bLocked;
@@ -88,13 +88,12 @@ public: void Lock() {
if (bLocked)
return;
- EnterCriticalSection(&csFileShareListAccess);
+ mir_cslock lck(csFileShareListAccess);
bLocked = true;
}
void Unlock() {
if (!bLocked)
return;
- LeaveCriticalSection(&csFileShareListAccess);
bLocked = false;
}
|