mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
[NTDLL_APITEST] Add tests for zero and negative information class values. CORE-15651
This commit is contained in:
parent
63977328b1
commit
a71f3a70d8
7 changed files with 95 additions and 0 deletions
19
modules/rostests/apitests/ntdll/NtSetInformationFile.c
Normal file
19
modules/rostests/apitests/ntdll/NtSetInformationFile.c
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Kernel
|
||||
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
||||
* PURPOSE: Test for NtSetInformationFile
|
||||
* COPYRIGHT: Copyright 2019 Thomas Faber (thomas.faber@reactos.org)
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(NtSetInformationFile)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = NtSetInformationFile(NULL, NULL, NULL, 0, 0);
|
||||
ok(Status == STATUS_INVALID_INFO_CLASS, "Status = %lx\n", Status);
|
||||
|
||||
Status = NtSetInformationFile(NULL, NULL, NULL, 0, 0x80000000);
|
||||
ok(Status == STATUS_INVALID_INFO_CLASS, "Status = %lx\n", Status);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue