Avoid evaluating an uninitialized value.
Doesn't matter anyway here.
This commit is contained in:
parent
c0dde25e5a
commit
8a3a67dc5b
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue