[PATCH] windowscodecs: Remove redundant not-NULL check (coccinellery)
Michael Stefaniuc
mstefani at winehq.org
Wed Feb 27 17:50:33 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
return E_INVALIDARG if ret_len is NULL.
dlls/windowscodecs/metadataquery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/windowscodecs/metadataquery.c b/dlls/windowscodecs/metadataquery.c
index c4c188d8c9..0a44c1e5c8 100644
--- a/dlls/windowscodecs/metadataquery.c
+++ b/dlls/windowscodecs/metadataquery.c
@@ -925,7 +925,7 @@ HRESULT WINAPI WICMapSchemaToName(REFGUID format, LPWSTR schema, UINT len, WCHAR
return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
}
- if (ret_len) *ret_len = lstrlenW(name2schema[i].name) + 1;
+ *ret_len = lstrlenW(name2schema[i].name) + 1;
return S_OK;
}
}
--
2.20.1
More information about the wine-devel
mailing list