libwinpr-nt: make test successfully call NtCreateFile on Windows
This commit is contained in:
parent
e2fe00fd37
commit
5fb65101e9
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user