Skip to content
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

Small COM fixes #373

Merged
merged 3 commits into from
Oct 24, 2014
Merged

Small COM fixes #373

merged 3 commits into from
Oct 24, 2014

Conversation

lwahonen
Copy link
Contributor

@lwahonen lwahonen commented Oct 6, 2014

ComUtils was unable to enumerate classes without admin rights because it tried to open the registry keys with ALL_ACCESS instead of READ_ACCESS.

COMBindingBaseObject was using CoInitialize instead of CoInitializeEx, however MSDN recommends "New applications should call CoInitializeEx instead of CoInitialize. If you want to use the Windows Runtime, you must call Windows::Foundation::Initialize instead."

COMBindingBaseObject was also interpreting S_FALSE as "CoInitialize failed" instead of "CoInitialize has already been called" and failing randomly.

@twall
Copy link
Contributor

twall commented Oct 10, 2014

LGTM. Can you update from master, which should fix the CI issues?

@lwahonen
Copy link
Contributor Author

os x travis build seems to be stuck(?), linux went through ok. Somewhat hard to see how these could break the os x one.

@dblock
Copy link
Member

dblock commented Oct 24, 2014

Thanks, this is great, merging.

dblock added a commit that referenced this pull request Oct 24, 2014
@dblock dblock merged commit a0c705a into java-native-access:master Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants