-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Metadata permission #11408
Metadata permission #11408
Conversation
common/metadata-helper.cpp
Outdated
@@ -229,7 +231,10 @@ namespace rs2 | |||
CloseHandle(sei.hProcess); | |||
if (exitCode) | |||
throw std::runtime_error("Failed to set metadata registry keys!"); | |||
return true; | |||
// returning false here so that the instandce that runs "not as admin" |
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.
instance?
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.
typo corrected
common/metadata-helper.cpp
Outdated
// returning false here so that the instandce that runs "not as admin" | ||
// will not even try to do the writing to registry job | ||
// This job is done by the "run as admin" instance. | ||
return false; |
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.
We have an if
and an else
both returning false?
and more code after? return true?
Take another look please..
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.
IMO, this is correct.
Let's talk about it.
17565cd
to
685b4db
Compare
Looks great, I retriggered the CI, once we see a green light I will approve :) |
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.
LGTM
Tracked by: LRS-663