Modify

Opened 17 years ago

Closed 17 years ago

#610 closed Bug (Fixed)

WinAPI.au3 _WinAPI_CreateFile() does not return 0 on failure as specified in beta help

Reported by: Bowmore Owned by: Gary
Milestone: 3.2.13.10 Component: Standard UDFs
Version: 3.2.13.8 Severity: None
Keywords: Cc:

Description

Tested on
WinXP SP3
AutoIt Beta 3.2.13.8
WinAPI.au3

This may be either a documentation issue or a UDF bug

From Beta Help
Return Value

Success: The open handle to a specified file
Failure: 0

From testing I get 0xFFFFFFFF returned on failure

#Include <WinAPI.au3>
$sfile = "C:\I do not exist.txt" 
$hFile = _WinAPI_CreateFile($sFile, 2, 2, 2)
MsgBox(0,"File Handle", $hFile)

Attachments (0)

Change History (1)

comment:1 by Gary, 17 years ago

Milestone: 3.2.13.10
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.13.10

Modify Ticket

Action
as closed The owner will remain Gary.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.