Modify

Opened 17 years ago

Closed 17 years ago

#748 closed Bug (Fixed)

DllCall crashing the script on wrong dll file name (VarType)

Reported by: MrCreatoR <mscreator@…> Owned by: J-Paul Mesnage
Milestone: 3.2.13.13 Component: AutoIt
Version: 3.2.12.1 Severity: None
Keywords: DllCall Crash GdiPlus UDF Cc:

Description

I know this is a wrong usage of the function, but as i said before, in my opinion function should not cause a hard-crash of the script.

This is a quick/simple reproduction:

DllCall(0, "int", "Function", "int", 0, "int", 0)

If we use "" (empty string) instead of 0 (or even -1 will crash) in the file name, then it will not crash.

This can happen when user will call UDF function that relies on Dll name from global variable, as it happens with _GDIPlus_* UDFs if the user doesn't set _GDIPlus_Startup().

Forum topic

Thanks.

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 17 years ago

Milestone: 3.2.13.13
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.13.13

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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