﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2298	Error in _WinAPI_EnumDisplayDevices	KaFu	guinness	"EnumDisplayDevices returns 0 if display device number is not valid. This is not checked in the current version of _WinAPI_EnumDisplayDevices:

DllCall(""user32.dll"", ""bool"", ""EnumDisplayDevicesW"", ""struct*"", $tName, ""dword"", $iDevNum, ""struct*"", $tDevice, ""dword"", 1)
If @error Then Return SetError(@error, @extended, 0)


I propose to change these two lines as follows:

Local $iRet = DllCall(""user32.dll"", ""bool"", ""EnumDisplayDevicesW"", ""struct*"", $tName, ""dword"", $iDevNum, ""struct*"", $tDevice, ""dword"", 1)
If @error or $iRet[0] = 0 Then Return SetError(@error, @extended, $aDevice)
"	Bug	closed	3.3.9.5	Standard UDFs	3.3.8.1	None	Fixed		
