UE-70550 - //UE4/Release-4.22 - UE4Editor Static Analysis Win64 (MSVC) - warning C6387: 'mutex' could be '0': this does not adhere to the specification for the function 'CloseHandle' - iostargetdevice.cpp

#jira UE-70550
#rb none

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: cosmin.sulea
#ROBOMERGE-SOURCE: CL 5175315 in //UE4/Release-4.22/... via CL 5207588
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 5223719 by cosmin sulea in Dev-VR branch]
This commit is contained in:
cosmin sulea
2019-02-26 22:33:38 -05:00
parent 5dbd110baf
commit 75785e6646

View File

@@ -222,8 +222,10 @@ bool FTcpDSCommander::IsDSRunning()
if (mutex == NULL || GetLastError() == ERROR_ALREADY_EXISTS)
{
// deployment server instance already runnning
//UE_LOG(LogTemp, Display, TEXT("Deployment server instance already runnning."));
CloseHandle(mutex);
if (mutex)
{
CloseHandle(mutex);
}
return true;
}
CloseHandle(mutex);