From 8a3a67dc5b0c0f1f64d1a74cb02c86209aa2a31f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 8 Apr 2015 11:35:40 -0700 Subject: [PATCH] Avoid evaluating an uninitialized value. Doesn't matter anyway here. --- Windows/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/main.cpp b/Windows/main.cpp index 93ac950a01..b5357a4f97 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -202,7 +202,7 @@ std::string GetVideoCardDriverVersion() { hr = pEnum->Next(WBEM_INFINITE, 1, &pObj, &uReturned); } - if (uReturned && !FAILED(hr)) { + if (!FAILED(hr) && uReturned) { hr = pObj->Get(L"DriverVersion", 0, &var, NULL, NULL); if (SUCCEEDED(hr)) { char str[MAX_PATH];