[NTDLL_APITEST] Add tests for zero and negative information class values. CORE-15651

This commit is contained in:
Thomas Faber 2019-02-02 21:37:08 +01:00
parent 63977328b1
commit a71f3a70d8
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
7 changed files with 95 additions and 0 deletions

View 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);
}