mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 12:47:46 +00:00
Avoid evaluating an uninitialized value.
Doesn't matter anyway here.
This commit is contained in:
parent
c0dde25e5a
commit
8a3a67dc5b
@ -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…
x
Reference in New Issue
Block a user