#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)
by , 16 years ago
| Attachment: | WinAPI_Modified.zip added |
|---|
comment:2 by , 16 years ago
| Resolution: | → Fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 16 years ago
| Milestone: | Future Release → 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 by , 16 years ago
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.

Zip file containing modified version of WinAPI.au3