mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 08:53:01 -05:00
dll: FspFsctlCreateVolume: use FILE_FLAG_OVERLAPPED when opening control device to allow concurrent DeviceIoControl's
This commit is contained in:
parent
29b21cef0d
commit
56a9d37135
@ -52,7 +52,7 @@ FSP_API NTSTATUS FspFsctlCreateVolume(PWSTR DevicePath,
|
|||||||
*DevicePathPtr = L'\0';
|
*DevicePathPtr = L'\0';
|
||||||
|
|
||||||
VolumeHandle = CreateFileW(DevicePathBuf,
|
VolumeHandle = CreateFileW(DevicePathBuf,
|
||||||
0, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);
|
0, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0);
|
||||||
if (INVALID_HANDLE_VALUE == VolumeHandle)
|
if (INVALID_HANDLE_VALUE == VolumeHandle)
|
||||||
{
|
{
|
||||||
Result = FspNtStatusFromWin32(GetLastError());
|
Result = FspNtStatusFromWin32(GetLastError());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user