mirror of https://github.com/a0rtega/pafish
Minor style change (cppcheck)
This commit is contained in:
parent
bc9971f06e
commit
3a564d60e7
|
@ -234,7 +234,6 @@ int wmi_check_query(IWbemServices *services, const wchar_t *language, const wcha
|
||||||
wmi_check_row check_row) {
|
wmi_check_row check_row) {
|
||||||
int status = FALSE;
|
int status = FALSE;
|
||||||
IEnumWbemClassObject *queryrows = NULL;
|
IEnumWbemClassObject *queryrows = NULL;
|
||||||
IWbemClassObject * batchrows[10];
|
|
||||||
BSTR wmilang = SysAllocString(language);
|
BSTR wmilang = SysAllocString(language);
|
||||||
BSTR wmiquery = SysAllocString(query);
|
BSTR wmiquery = SysAllocString(query);
|
||||||
|
|
||||||
|
@ -243,6 +242,7 @@ int wmi_check_query(IWbemServices *services, const wchar_t *language, const wcha
|
||||||
services, wmilang, wmiquery, WBEM_FLAG_BIDIRECTIONAL, NULL, &queryrows);
|
services, wmilang, wmiquery, WBEM_FLAG_BIDIRECTIONAL, NULL, &queryrows);
|
||||||
|
|
||||||
if (!FAILED(result) && (queryrows != NULL)) {
|
if (!FAILED(result) && (queryrows != NULL)) {
|
||||||
|
IWbemClassObject * batchrows[10];
|
||||||
ULONG index, count = 0;
|
ULONG index, count = 0;
|
||||||
result = WBEM_S_NO_ERROR;
|
result = WBEM_S_NO_ERROR;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue