#1344 closed Bug (Fixed)
_WinAPI_CreateFile - Use of magic number and resulting 64-bit incompatibility
Reported by: | Miraged | Owned by: | Gary |
---|---|---|---|
Milestone: | 3.3.2.0 | Component: | Standard UDFs |
Version: | 3.3.0.0 | Severity: | None |
Keywords: | _WinAPI_CreateFile magic numbers | Cc: |
Description
Said function tests for 0xFFFFFFFF (which equals INVALID_HANDLE_VALUE under 32-bit only). Should probably be changed to a constant and use the value -1 (or perhaps (Ptr("")-1)) for 64-bit compatibility. I've also attached a corrected version of WinAPI.au3. Changes are on lines 28 and 980.
See this post: Intel Software Network Blogs for slightly more information if you need it.
Attachments (1)
Change History (6)
Changed 15 years ago by Miraged
comment:1 Changed 15 years ago by Miraged
Can be marked as fixed/closed. Fixed in 3.3.2.0
comment:2 Changed 15 years ago by Jpm
- Resolution set to Fixed
- Status changed from new to closed
comment:3 Changed 15 years ago by TicketCleanup
- Milestone set to Future Release
Automatic ticket cleanup.
comment:4 Changed 15 years ago by Valik
- Milestone changed from Future Release to 3.3.2.0
Ugh, so you filed a bug report against an old version not bothering to test that it was fixed in the betas?
comment:5 Changed 15 years ago by Miraged
Well I checked the change logs and there was no mention there so I assumed that would be sufficient. Granted it is an old version date wise, but it was the latest stable release at the time I filed the report. Perhaps there should be a note on the main page of the bug tracker to check the beta's incase the change isn't listed in the change log or something? Regardless, this isn't a forum so I'll leave it be.
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Zip file containing modified version of WinAPI.au3