dxdiagn: Sign-compare warning fix.
This commit is contained in:
parent
56ba2baa01
commit
b31766fee6
|
@ -194,7 +194,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(PDXDIAGCONTAINER iface,
|
|||
p = This->properties;
|
||||
while (NULL != p) {
|
||||
if (dwIndex == i) {
|
||||
if (cchPropName <= lstrlenW(p->vName)) {
|
||||
if (cchPropName <= strlenW(p->vName)) {
|
||||
return DXDIAG_E_INSUFFICIENT_BUFFER;
|
||||
}
|
||||
lstrcpynW(pwszPropName, p->vName, cchPropName);
|
||||
|
|
Loading…
Reference in New Issue