dxdiagn: Sign-compare warning fix.

This commit is contained in:
Andrew Talbot 2008-08-25 15:36:12 +01:00 committed by Alexandre Julliard
parent 56ba2baa01
commit b31766fee6
1 changed files with 2 additions and 2 deletions

View File

@ -194,8 +194,8 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(PDXDIAGCONTAINER iface,
p = This->properties; p = This->properties;
while (NULL != p) { while (NULL != p) {
if (dwIndex == i) { if (dwIndex == i) {
if (cchPropName <= lstrlenW(p->vName)) { if (cchPropName <= strlenW(p->vName)) {
return DXDIAG_E_INSUFFICIENT_BUFFER; return DXDIAG_E_INSUFFICIENT_BUFFER;
} }
lstrcpynW(pwszPropName, p->vName, cchPropName); lstrcpynW(pwszPropName, p->vName, cchPropName);
return S_OK; return S_OK;