wstr.c_str(),
-1,
&str[0],
- str.length(),
+ (int)str.length(),
NULL,
NULL);
{
IEnumWbemClassObject *pEnum;
BSTR query;
- unsigned query_len;
+ size_t query_len;
IWbemClassObject *pclsObj;
HRESULT hr;
ULONG uReturn;
query_len = strlen("SELECT FROM ") + wcslen(field) + wcslen(table) + 1;
- query = SysAllocStringLen(NULL, query_len);
+ query = SysAllocStringLen(NULL, (UINT)query_len);
if (query == NULL) {
hr = E_OUTOFMEMORY;
goto err;
if (FAILED(outMethodInst->Get(L"SessionId", 0, &var, NULL, NULL)))
goto outmethodgetfailed;
- ULONG query_len;
+ size_t query_len;
query_len = strlen("SELECT * FROM CitrixXenStoreSession WHERE SessionId=")+10;
- query = SysAllocStringLen(NULL, query_len);
+ query = SysAllocStringLen(NULL, (UINT)query_len);
if (query == NULL)
goto allocqueryfailed;
OutputDebugString(__FUNCTION__ " SessionStartFailed");
VariantClear(&vpath);
-sessionExec:
OutputDebugString(__FUNCTION__ " SessionExecFailed");
setvpath:
OutputDebugString(__FUNCTION__ " SetVpathFailed");
ExAcquireFastMutex(&fdoData->SessionLock);
}
+
__drv_requiresIRQL(APC_LEVEL)
__drv_restoresIRQLGlobal(OldIrql, fdoData->SessionLock)
void UnlockSessions(
XENIFACE_FDO* fdoData)
{
ASSERT(KeGetCurrentIrql() == APC_LEVEL);
+#pragma prefast (suppress:26110)
ExReleaseFastMutex(&fdoData->SessionLock);
-
}
void GetUnicodeString(UNICODE_STRING *unicode, USHORT maxlength, LPWSTR location)
else {
XenIfaceDebugPrint(WARNING, "No Watch\n");
}
+#pragma prefast (suppress:26110)
ExReleaseFastMutex(&session->WatchMapLock);
UnlockSessions(fdoData);