Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use correct check for MSVC C++ version support in _wmimodule.cpp
  • Loading branch information
CAM-Gerlach committed Dec 20, 2022
commit 472ef3217946599ea650b33fb92dfd6fe03281b8
6 changes: 3 additions & 3 deletions PC/_wmimodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <Python.h>


#if _MSC_VER >= 1929
#if _MSVC_LANG >= 202002L
// We can use clinic directly when the C++ compiler supports C++20
#include "clinic/_wmimodule.cpp.h"
#else
Expand Down Expand Up @@ -96,9 +96,9 @@ _query_thread(LPVOID param)
}
if (SUCCEEDED(hr)) {
hr = services->ExecQuery(
bstr_t("WQL"),
bstr_t("WQL"),
bstrQuery,
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
NULL,
&enumerator
);
Expand Down