mirror of https://github.com/a0rtega/pafish
Fix compiler warnings
This commit is contained in:
parent
9d0835bf37
commit
d69f67157f
|
@ -10,7 +10,7 @@ LINKOBJ = $(OBJ)
|
||||||
LIBS = -lwsock32 -liphlpapi -lsetupapi -lmpr -lole32 -lwbemuuid -loleaut32 -lws2_32 -s
|
LIBS = -lwsock32 -liphlpapi -lsetupapi -lmpr -lole32 -lwbemuuid -loleaut32 -lws2_32 -s
|
||||||
INCS =
|
INCS =
|
||||||
BIN = Output/MingW/pafish64.exe
|
BIN = Output/MingW/pafish64.exe
|
||||||
CFLAGS = $(INCS) -Wall -Wextra -Wpedantic -O0
|
CFLAGS = $(INCS) -Wall -Wextra -Wpedantic -O0 -Wno-cast-function-type
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
|
|
|
@ -284,7 +284,8 @@ int wmi_check_query(IWbemServices *services, const wchar_t *language, const wcha
|
||||||
|
|
||||||
while (WBEM_S_NO_ERROR == result && status == FALSE) {
|
while (WBEM_S_NO_ERROR == result && status == FALSE) {
|
||||||
// Retrieve 10 rows (instances) each time.
|
// Retrieve 10 rows (instances) each time.
|
||||||
result = queryrows->lpVtbl->Next(queryrows, WBEM_INFINITE, 10,
|
// WBEM_INFINITE = 0xFFFFFFFF
|
||||||
|
result = queryrows->lpVtbl->Next(queryrows, 0xFFFFFFFF, 10,
|
||||||
batchrows, &count);
|
batchrows, &count);
|
||||||
|
|
||||||
if (!SUCCEEDED(result)) {
|
if (!SUCCEEDED(result)) {
|
||||||
|
|
|
@ -6,10 +6,12 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winternl.h>
|
#include <winternl.h>
|
||||||
|
|
||||||
|
#ifndef _WDMDDK_
|
||||||
typedef struct _RTL_BITMAP {
|
typedef struct _RTL_BITMAP {
|
||||||
ULONG SizeOfBitMap;
|
ULONG SizeOfBitMap;
|
||||||
PULONG Buffer;
|
PULONG Buffer;
|
||||||
} RTL_BITMAP, *PRTL_BITMAP;
|
} RTL_BITMAP, *PRTL_BITMAP;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PEB data structure
|
PEB data structure
|
||||||
|
|
Loading…
Reference in New Issue