diff --git a/winpr/libwinpr/nt/nt.c b/winpr/libwinpr/nt/nt.c index 9c8e55b29..8e16c9b86 100644 --- a/winpr/libwinpr/nt/nt.c +++ b/winpr/libwinpr/nt/nt.c @@ -229,6 +229,8 @@ NTSTATUS _NtCreateFile(PHANDLE FileHandle, ACCESS_MASK DesiredAccess, *((PULONG_PTR) FileHandle) = (ULONG_PTR) pFileHandle; + //STATUS_ACCESS_DENIED + //STATUS_OBJECT_NAME_INVALID //STATUS_OBJECT_PATH_NOT_FOUND //STATUS_OBJECT_NAME_NOT_FOUND diff --git a/winpr/libwinpr/nt/test/TestNtCreateFile.c b/winpr/libwinpr/nt/test/TestNtCreateFile.c index 26cea4084..d91bf228f 100644 --- a/winpr/libwinpr/nt/test/TestNtCreateFile.c +++ b/winpr/libwinpr/nt/test/TestNtCreateFile.c @@ -15,7 +15,7 @@ int TestNtCreateFile(int argc, char* argv[]) OBJECT_ATTRIBUTES attributes; IO_STATUS_BLOCK ioStatusBlock; - _RtlInitAnsiString(&aString, "\\Device\\WinPR"); + _RtlInitAnsiString(&aString, "\\??\\C:\\Users\\Public\\foo.txt"); _RtlAnsiStringToUnicodeString(&uString, &aString, TRUE); handle = NULL;