Skip to content

Commit

Permalink
ResourcesEx.au3 - $__WINVER > _WinAPI_GetVersion()
Browse files Browse the repository at this point in the history
$__WINVER was removed from WinAPIInternals.au3 at 08-04-2018 so is not present in recent beta
  • Loading branch information
mlipok authored Jul 2, 2021
1 parent 95639ac commit 4c018e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/ResourcesEx.au3
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ Func _Resource_SetToCtrlID($iCtrlID, $sResNameOrID, $iResType = $RT_RCDATA, $sDl
$iError = @error

If $bReturn Then
If $__WINVER >= 0x0600 Then
If _WinAPI_GetVersion() >= 0x0600 Then
$bReturn = _WinAPI_DeleteObject($hHBITMAP) > 0 ; Delete if Vista or above
$vReturn = $bReturn
Else
Expand Down

0 comments on commit 4c018e2

Please sign in to comment.