Commit 5cf0b44d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

urlmon: Fixed array size check (Coverity).

parent 4d1a28b2
......@@ -612,7 +612,7 @@ HRESULT WINAPI CreateURLMonikerEx(IMoniker *pmkContext, LPCWSTR szURL, IMoniker
if (!szURL || !ppmk)
return E_INVALIDARG;
if(dwFlags > sizeof(create_flags_map)/sizeof(*create_flags_map)) {
if(dwFlags >= sizeof(create_flags_map)/sizeof(*create_flags_map)) {
FIXME("Unsupported flags %x\n", dwFlags);
return E_INVALIDARG;
}
......@@ -665,7 +665,7 @@ HRESULT WINAPI CreateURLMonikerEx2(IMoniker *pmkContext, IUri *pUri, IMoniker **
if (!pUri || !ppmk)
return E_INVALIDARG;
if(dwFlags > sizeof(create_flags_map)/sizeof(*create_flags_map)) {
if(dwFlags >= sizeof(create_flags_map)/sizeof(*create_flags_map)) {
FIXME("Unsupported flags %x\n", dwFlags);
return E_INVALIDARG;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment