diff options
Diffstat (limited to 'plugins/HTTPServer/src/HttpUser.cpp')
-rw-r--r-- | plugins/HTTPServer/src/HttpUser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/HTTPServer/src/HttpUser.cpp b/plugins/HTTPServer/src/HttpUser.cpp index 1f28cdac5d..5b738240b0 100644 --- a/plugins/HTTPServer/src/HttpUser.cpp +++ b/plugins/HTTPServer/src/HttpUser.cpp @@ -377,11 +377,11 @@ bool CLHttpUser::bProcessGetRequest(char * pszRequest, bool bIsGetCommand) if (nUriLength <= 0)
return false;
- CLFileShareListAccess clCritSection;
-
if (bShutdownInProgress)
return false;
+ mir_cslockfull lck(csFileShareListAccess);
+
static char szTempfile[MAX_PATH + 1];
szTempfile[0] = '\0';
@@ -561,7 +561,7 @@ bool CLHttpUser::bProcessGetRequest(char * pszRequest, bool bIsGetCommand) ShowPopupWindow(inet_ntoa(stAddr), pszSrvPath);
}
- clCritSection.Unlock();
+ lck.unlock();
DWORD dwFileStart = 0;
DWORD dwDataToSend = nDataSize;
@@ -740,7 +740,7 @@ bool CLHttpUser::bProcessGetRequest(char * pszRequest, bool bIsGetCommand) DeleteFile(szTempfile);
}
- clCritSection.Lock();
+ lck.lock();
nThreadCount--;
bool bNeedToWriteConfig = false;
|