Commit a44771c9 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

ntdll/tests: Use NTSTATUS instead of DWORD for status variables.

parent 17f28f85
...@@ -57,7 +57,7 @@ static BOOL InitFunctionPtrs(void) ...@@ -57,7 +57,7 @@ static BOOL InitFunctionPtrs(void)
static void test_query_basic(void) static void test_query_basic(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
SYSTEM_BASIC_INFORMATION sbi; SYSTEM_BASIC_INFORMATION sbi;
...@@ -118,7 +118,7 @@ static void test_query_cpu(void) ...@@ -118,7 +118,7 @@ static void test_query_cpu(void)
static void test_query_performance(void) static void test_query_performance(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
SYSTEM_PERFORMANCE_INFORMATION spi; SYSTEM_PERFORMANCE_INFORMATION spi;
...@@ -138,7 +138,7 @@ static void test_query_performance(void) ...@@ -138,7 +138,7 @@ static void test_query_performance(void)
static void test_query_timeofday(void) static void test_query_timeofday(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
/* Copy of our winternl.h structure turned into a private one */ /* Copy of our winternl.h structure turned into a private one */
...@@ -215,7 +215,7 @@ static void test_query_timeofday(void) ...@@ -215,7 +215,7 @@ static void test_query_timeofday(void)
static void test_query_process(void) static void test_query_process(void)
{ {
DWORD status; NTSTATUS status;
DWORD last_pid; DWORD last_pid;
ULONG ReturnLength; ULONG ReturnLength;
int i = 0, k = 0; int i = 0, k = 0;
...@@ -325,7 +325,7 @@ static void test_query_process(void) ...@@ -325,7 +325,7 @@ static void test_query_process(void)
static void test_query_procperf(void) static void test_query_procperf(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
ULONG NeededLength; ULONG NeededLength;
SYSTEM_BASIC_INFORMATION sbi; SYSTEM_BASIC_INFORMATION sbi;
...@@ -363,7 +363,7 @@ static void test_query_procperf(void) ...@@ -363,7 +363,7 @@ static void test_query_procperf(void)
static void test_query_module(void) static void test_query_module(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
ULONG ModuleCount, i; ULONG ModuleCount, i;
...@@ -398,7 +398,7 @@ static void test_query_module(void) ...@@ -398,7 +398,7 @@ static void test_query_module(void)
static void test_query_handle(void) static void test_query_handle(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
ULONG SystemInformationLength = sizeof(SYSTEM_HANDLE_INFORMATION); ULONG SystemInformationLength = sizeof(SYSTEM_HANDLE_INFORMATION);
SYSTEM_HANDLE_INFORMATION* shi = HeapAlloc(GetProcessHeap(), 0, SystemInformationLength); SYSTEM_HANDLE_INFORMATION* shi = HeapAlloc(GetProcessHeap(), 0, SystemInformationLength);
...@@ -431,7 +431,7 @@ static void test_query_handle(void) ...@@ -431,7 +431,7 @@ static void test_query_handle(void)
static void test_query_cache(void) static void test_query_cache(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
SYSTEM_CACHE_INFORMATION sci; SYSTEM_CACHE_INFORMATION sci;
...@@ -449,7 +449,7 @@ static void test_query_cache(void) ...@@ -449,7 +449,7 @@ static void test_query_cache(void)
static void test_query_interrupt(void) static void test_query_interrupt(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
ULONG NeededLength; ULONG NeededLength;
SYSTEM_BASIC_INFORMATION sbi; SYSTEM_BASIC_INFORMATION sbi;
...@@ -477,7 +477,7 @@ static void test_query_interrupt(void) ...@@ -477,7 +477,7 @@ static void test_query_interrupt(void)
static void test_query_kerndebug(void) static void test_query_kerndebug(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
SYSTEM_KERNEL_DEBUGGER_INFORMATION skdi; SYSTEM_KERNEL_DEBUGGER_INFORMATION skdi;
...@@ -495,7 +495,7 @@ static void test_query_kerndebug(void) ...@@ -495,7 +495,7 @@ static void test_query_kerndebug(void)
static void test_query_regquota(void) static void test_query_regquota(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
SYSTEM_REGISTRY_QUOTA_INFORMATION srqi; SYSTEM_REGISTRY_QUOTA_INFORMATION srqi;
...@@ -513,7 +513,7 @@ static void test_query_regquota(void) ...@@ -513,7 +513,7 @@ static void test_query_regquota(void)
static void test_query_process_basic(void) static void test_query_process_basic(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
typedef struct _PROCESS_BASIC_INFORMATION_PRIVATE { typedef struct _PROCESS_BASIC_INFORMATION_PRIVATE {
...@@ -581,7 +581,7 @@ static void test_query_process_basic(void) ...@@ -581,7 +581,7 @@ static void test_query_process_basic(void)
static void test_query_process_vm(void) static void test_query_process_vm(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
VM_COUNTERS pvi; VM_COUNTERS pvi;
...@@ -619,7 +619,7 @@ static void test_query_process_vm(void) ...@@ -619,7 +619,7 @@ static void test_query_process_vm(void)
static void test_query_process_io(void) static void test_query_process_io(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
IO_COUNTERS pii; IO_COUNTERS pii;
...@@ -659,7 +659,7 @@ static void test_query_process_io(void) ...@@ -659,7 +659,7 @@ static void test_query_process_io(void)
static void test_query_process_times(void) static void test_query_process_times(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
HANDLE process; HANDLE process;
SYSTEMTIME UTC, Local; SYSTEMTIME UTC, Local;
...@@ -713,7 +713,7 @@ static void test_query_process_times(void) ...@@ -713,7 +713,7 @@ static void test_query_process_times(void)
static void test_query_process_handlecount(void) static void test_query_process_handlecount(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
DWORD handlecount; DWORD handlecount;
HANDLE process; HANDLE process;
...@@ -757,7 +757,7 @@ static void test_query_process_handlecount(void) ...@@ -757,7 +757,7 @@ static void test_query_process_handlecount(void)
static void test_query_process_image_file_name(void) static void test_query_process_image_file_name(void)
{ {
DWORD status; NTSTATUS status;
ULONG ReturnLength; ULONG ReturnLength;
UNICODE_STRING image_file_name; UNICODE_STRING image_file_name;
void *buffer; void *buffer;
...@@ -795,7 +795,7 @@ static void test_query_process_image_file_name(void) ...@@ -795,7 +795,7 @@ static void test_query_process_image_file_name(void)
static void test_readvirtualmemory(void) static void test_readvirtualmemory(void)
{ {
HANDLE process; HANDLE process;
DWORD status; NTSTATUS status;
SIZE_T readcount; SIZE_T readcount;
static const char teststring[] = "test string"; static const char teststring[] = "test string";
char buffer[12]; char buffer[12];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment