mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
urlmon: Fixed array size check (Coverity).
This commit is contained in:
parent
4d1a28b299
commit
5cf0b44d06
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue