libwinpr-nt: make test successfully call NtCreateFile on Windows

This commit is contained in:
Marc-André Moreau 2013-10-23 19:32:32 -04:00
parent e2fe00fd37
commit 5fb65101e9
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;