dxdiagn: Initialize a structure size member before calling EnumDisplayDevicesW.

This commit is contained in:
Andrew Nguyen 2009-12-10 20:02:24 -06:00 committed by Alexandre Julliard
parent 50833f0780
commit 957281a8e3
1 changed files with 1 additions and 0 deletions

View File

@ -498,6 +498,7 @@ static HRESULT DXDiag_InitDXDiagDisplayContainer(IDxDiagContainer* pSubCont)
hr = IDxDiagContainerImpl_AddChildContainer( pSubCont, szAdapterID, pDisplayAdapterSubCont );
if (FAILED( hr )) return hr;
disp_dev.cb = sizeof(disp_dev);
if (EnumDisplayDevicesW( NULL, 0, &disp_dev, 0 ))
{
add_prop_str( pDisplayAdapterSubCont, szDeviceName, disp_dev.DeviceName );