mirror of
https://github.com/reactos/reactos.git
synced 2024-08-22 19:33:01 +00:00
![Thomas Faber](/assets/img/avatar_default.png)
- Add a test for NtCreateFile with invalid ObjectAttributes. Patch by Aleksandar Andrejevic. CORE-7167 svn path=/trunk/; revision=60408
35 lines
991 B
C
35 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);
|
|
}
|