Thanks to visit codestin.com
Credit goes to github.com

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
Prev Previous commit
handle SetEvent error
  • Loading branch information
aisk committed Dec 5, 2023
commit da0ddb14d190cf8b7cb2332552cfc85b2a768e1e
4 changes: 3 additions & 1 deletion PC/_wmimodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ _query_thread(LPVOID param)
NULL, NULL, 0, NULL, 0, 0, &services
);
}
SetEvent(data->connectEvent);
if (!SetEvent(data->connectEvent)) {
hr = HRESULT_FROM_WIN32(GetLastError());
}
if (SUCCEEDED(hr)) {
hr = CoSetProxyBlanket(
services, RPC_C_AUTHN_WINNT, RPC_C_AUTHZ_NONE, NULL,
Expand Down