wmiutils: Validate parameters in IWbemPath::SetText and IWbemPath::GetText.
This commit is contained in:
parent
0ee1b888a2
commit
7e936825e2
|
@ -100,6 +100,8 @@ static HRESULT WINAPI path_SetText(
|
||||||
|
|
||||||
TRACE("%p, %u, %s\n", iface, uMode, debugstr_w(pszPath));
|
TRACE("%p, %u, %s\n", iface, uMode, debugstr_w(pszPath));
|
||||||
|
|
||||||
|
if (!pszPath) return WBEM_E_INVALID_PARAMETER;
|
||||||
|
|
||||||
if (uMode) FIXME("igoring mode %u\n", uMode);
|
if (uMode) FIXME("igoring mode %u\n", uMode);
|
||||||
|
|
||||||
len = strlenW( pszPath );
|
len = strlenW( pszPath );
|
||||||
|
@ -120,6 +122,8 @@ static HRESULT WINAPI path_GetText(
|
||||||
|
|
||||||
TRACE("%p, 0x%x, %p, %p\n", iface, lFlags, puBufferLength, pszText);
|
TRACE("%p, 0x%x, %p, %p\n", iface, lFlags, puBufferLength, pszText);
|
||||||
|
|
||||||
|
if (!puBufferLength || !pszText) return WBEM_E_INVALID_PARAMETER;
|
||||||
|
|
||||||
if (lFlags != WBEMPATH_GET_ORIGINAL)
|
if (lFlags != WBEMPATH_GET_ORIGINAL)
|
||||||
{
|
{
|
||||||
FIXME("flags 0x%x not supported\n", lFlags);
|
FIXME("flags 0x%x not supported\n", lFlags);
|
||||||
|
|
Loading…
Reference in New Issue