Skip to content

Small COM fixes#373

Merged
dblock merged 3 commits intojava-native-access:masterfrom
lwahonen:master
Oct 24, 2014
Merged

Small COM fixes#373
dblock merged 3 commits intojava-native-access:masterfrom
lwahonen:master

Conversation

@lwahonen
Copy link
Copy Markdown

@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
Copy Markdown
Contributor

twall commented Oct 10, 2014

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

@lwahonen
Copy link
Copy Markdown
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
Copy Markdown
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