Modify

Opened 15 years ago

Closed 15 years ago

#1511 closed Bug (Fixed)

Datatype mismatch in _GDIPlus_BrushCreateSolid

Reported by: ProgAndy Owned by: Jpm
Milestone: 3.3.7.0 Component: Standard UDFs
Version: 3.3.5.6 Severity: None
Keywords: Cc:

Description

In _GDIPlus_BrushCreateSolid, the second parametertype is delcared as "dword*", but it has to be "ptr*" or "handle*".
This results in crashes when using x64-mode.

; #FUNCTION# ====================================================================================================================
; Name...........: _GDIPlus_BrushCreateSolid
; Description ...: Create a solid Brush object
; Syntax.........: _GDIPlus_BrushCreateSolid([$iARGB = 0xFF000000])
; Parameters ....: $iARGB       - Alpha, Red, Green and Blue components of brush
; Return values .: Success      - Handle to a solid Brush object
;                  Failure      - 0
; Author ........: Paul Campbell (PaulIA)
; Modified.......: Gary Frost
; Remarks .......: When you are done with the Brush object, call _GDIPlus_BrushDispose to release the resources
; Related .......: _GDIPlus_BrushDispose
; Link ..........: @@MsdnLink@@ GdipCreateSolidFill
; Example .......: Yes
; ===============================================================================================================================
Func _GDIPlus_BrushCreateSolid($iARGB = 0xFF000000)
	Local $aResult = DllCall($ghGDIPDll, "int", "GdipCreateSolidFill", "int", $iARGB, "ptr*", 0)
	If @error Then Return SetError(@error, @extended, 0)
	Return SetExtended($aResult[0], $aResult[2])
EndFunc   ;==>_GDIPlus_BrushCreateSolid

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Jpm

  • Milestone set to 3.3.7.0
  • Owner changed from Gary to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [5776] in version: 3.3.7.0

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.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.