mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
combase: Reorder checks (Coverity).
This commit is contained in:
parent
9d5e4edae6
commit
a20e75432e
@ -99,13 +99,13 @@ HRESULT WINAPI WindowsCreateStringReference(LPCWSTR ptr, UINT32 len,
|
||||
return E_INVALIDARG;
|
||||
if (ptr == NULL && len > 0)
|
||||
return E_POINTER;
|
||||
if (ptr[len] != '\0')
|
||||
return E_INVALIDARG;
|
||||
if (len == 0)
|
||||
{
|
||||
*out = NULL;
|
||||
return S_OK;
|
||||
}
|
||||
if (ptr[len] != '\0')
|
||||
return E_INVALIDARG;
|
||||
priv->buffer = (LPWSTR)ptr;
|
||||
priv->length = len;
|
||||
priv->reference = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user