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

Kernel32Util.getPrivateProfileSection() throws Win32Exception for empty sections #1410

Closed
mkarg opened this issue Jan 26, 2022 · 0 comments · Fixed by #1411
Closed

Kernel32Util.getPrivateProfileSection() throws Win32Exception for empty sections #1410

mkarg opened this issue Jan 26, 2022 · 0 comments · Fixed by #1411

Comments

@mkarg
Copy link
Contributor

mkarg commented Jan 26, 2022

Provide complete information about the problem

  1. Version of JNA and related jars

5.10.0

  1. Version and vendor of the java virtual machine

Azul 8

  1. Operating system

Windows

  1. System architecture (CPU type, bitness of the JVM)

ALL

  1. Complete description of the problem

Kernel32Util.getPrivateProfileSection() throws Win32Exception with the error code 0x0 (i. e. "success", ERROR_SUCCESS) when the requested section exists in the referenced INI file but does not contain any entries, hence "is empty".

  1. Steps to reproduce
  • Create some INI file containing only an arbitrary section header but nothing else.
  • Invoke Kernel32Util.getPrivateProfileSection() for that section header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant