Merge pull request #4203 from floppym/mkdir-error
winpr: _IoCreateDeviceEx: fix mkdir error check
This commit is contained in:
commit
5b34c033a7
@ -138,7 +138,7 @@ NTSTATUS _IoCreateDeviceEx(PDRIVER_OBJECT_EX DriverObject, ULONG DeviceExtension
|
|||||||
|
|
||||||
if (!PathFileExistsA(DeviceBasePath))
|
if (!PathFileExistsA(DeviceBasePath))
|
||||||
{
|
{
|
||||||
if (!mkdir(DeviceBasePath, S_IRUSR | S_IWUSR | S_IXUSR))
|
if (mkdir(DeviceBasePath, S_IRUSR | S_IWUSR | S_IXUSR) != 0)
|
||||||
{
|
{
|
||||||
free(DeviceBasePath);
|
free(DeviceBasePath);
|
||||||
return STATUS_ACCESS_DENIED;
|
return STATUS_ACCESS_DENIED;
|
||||||
|
Loading…
Reference in New Issue
Block a user