Skip to content

Find bug on checking architecture #11

@TakemoGit

Description

@TakemoGit

Hi.
I found bug at Twain#getArch().

On Windows11, System.getProperty("os.name") returns "Windows11" and getArch() returns "32",
32bit JRE on Windows10 64bit returns "64".
Why dont you use Native.POINTER_SIZE to check architecture.

e.g.
return (Native.POINTER_SIZE == 8) ? "64" : "32";

Thank you for the wonderful program 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions