Skip to content

Added EnumResourceTypes and EnumResourceNames to Kernel32#545

Merged
dblock merged 1 commit intojava-native-access:masterfrom
mlfreeman2:kernel32-additional-2
Dec 1, 2015
Merged

Added EnumResourceTypes and EnumResourceNames to Kernel32#545
dblock merged 1 commit intojava-native-access:masterfrom
mlfreeman2:kernel32-additional-2

Conversation

@mlfreeman2
Copy link
Copy Markdown
Contributor

This also fixes an embarassing mistake I made in Kernel32Util.getResource().

Like an idiot, I committed it to the branch on my fork, wandered off for a few days, came back, and created the last PR without realizing I'd never run the unit test.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the mistake. If you don't get the resource into a byte array before calling FreeLibrary() you're doomed.

@dblock
Copy link
Copy Markdown
Member

dblock commented Nov 30, 2015

Please try to write at least minimal tests for the individual EnumResourceTypes and EnumResourceNames. I'll merge without, but we don't want to rely on the Util tests, it's not obvious when someone is adding/fixing mappings.

This PR needs to be rebased against master, too, please.

@mlfreeman2
Copy link
Copy Markdown
Contributor Author

Added unit tests for the two functions to Kernel32Test.java and rebased against master.

dblock added a commit that referenced this pull request Dec 1, 2015
Added EnumResourceTypes and EnumResourceNames to Kernel32
@dblock dblock merged commit e4e0968 into java-native-access:master Dec 1, 2015
@dblock
Copy link
Copy Markdown
Member

dblock commented Dec 1, 2015

Merged, thank you.

@dblock
Copy link
Copy Markdown
Member

dblock commented Dec 1, 2015

Btw, if anyone is into the whole win32 resources game, a similar project to https://github.com/dblock/resourcelib could probably be useful in Java.

mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
…e-access#545)

Motivation:

There is a bug when doing 0RTT and task offloading. Let's disable the
test for now until I have time to investigate

Modifications:

Disable test when offloading is done.

Result:

Stabilize build
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.

2 participants