Skip to content

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

@mkarg

Description

@mkarg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions