1
0
mirror of https://github.com/winfsp/winfsp.git synced 2025-12-25 21:42:55 -06:00

sys: fix issues found by static analyzer

This commit is contained in:
Bill Zissimopoulos
2019-06-28 16:19:58 -07:00
parent 7f084787e3
commit 8fa337ae54
3 changed files with 5 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ FSP_FSEXT_PROVIDER *FspFsextProvider(UINT32 FsextControlCode, PNTSTATUS PLoadRes
RtlInitEmptyUnicodeString(&Path, Buf, sizeof Buf);
Result = RtlUnicodeStringPrintf(&Path,
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\%s", Value.V.Data);
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\%s", (PWSTR)Value.V.Data);
ASSERT(NT_SUCCESS(Result));
Result = ZwLoadDriver(&Path);