-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identify the ProviderGuid failing with 1168 #148
Conversation
if (StringFromCLSID(providerId, &clsidString) != S_OK) | ||
{ | ||
logWriter.TraceError( | ||
Utility::FormatString(L"Failed to convert GUID to string").c_str() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This failure occurs because the GUID is not a valid one? Might be nice to provide some more context for the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this state in the program execution, we've done the check for valid GUID
From the docs for StringFromCLSID we can only get to this branch when the value returned is E_OUTOFMEMORY. We can therefore provide this detail instead of having a vague message that the conversion failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bobsira The Logic LGTM however add some description on the PR for context.
* identify the ProviderGuid failing with 1168 * added informative error messages * lint fixes * reverted the check for all failing providers * another lint fix
This change it to help us figure out ETW events failing with 1168: ERROR_NOT_FOUND code.
We do not have a fix at the moment.
This change is to do the following: