mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 13:33:42 +00:00
1f7e58ff00
- Add a test for NtCreateFile with invalid ObjectAttributes. Patch by Aleksandar Andrejevic. CORE-7167 svn path=/trunk/; revision=60408
34 lines
991 B
C
34 lines
991 B
C
/*
|
|
* PROJECT: ReactOS api tests
|
|
* LICENSE: See COPYING in the top level directory
|
|
* PURPOSE: Test for NtCreateFile
|
|
* PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
|
|
*/
|
|
|
|
#define WIN32_NO_STATUS
|
|
#include <wine/test.h>
|
|
//#include <ndk/iotypes.h>
|
|
#include <ndk/iofuncs.h>
|
|
//#include <ndk/obtypes.h>
|
|
//#include <ndk/obfuncs.h>
|
|
|
|
START_TEST(NtCreateFile)
|
|
{
|
|
NTSTATUS Status;
|
|
HANDLE FileHandle;
|
|
IO_STATUS_BLOCK StatusBlock;
|
|
|
|
Status = NtCreateFile(&FileHandle,
|
|
FILE_READ_DATA,
|
|
(POBJECT_ATTRIBUTES)0xCCCCCCCC,
|
|
&StatusBlock,
|
|
NULL,
|
|
FILE_ATTRIBUTE_NORMAL,
|
|
FILE_SHARE_READ,
|
|
FILE_OPEN_IF,
|
|
FILE_NON_DIRECTORY_FILE,
|
|
NULL,
|
|
0);
|
|
|
|
ok_hex(Status, STATUS_ACCESS_VIOLATION);
|
|
}
|