wmiutils: Validate parameters in IWbemPath::SetText and IWbemPath::GetText.

This commit is contained in:
Hans Leidekker 2013-01-02 13:33:31 +01:00 committed by Alexandre Julliard
parent 0ee1b888a2
commit 7e936825e2
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,8 @@ static HRESULT WINAPI path_SetText(
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);
len = strlenW( pszPath );
@ -120,6 +122,8 @@ static HRESULT WINAPI path_GetText(
TRACE("%p, 0x%x, %p, %p\n", iface, lFlags, puBufferLength, pszText);
if (!puBufferLength || !pszText) return WBEM_E_INVALID_PARAMETER;
if (lFlags != WBEMPATH_GET_ORIGINAL)
{
FIXME("flags 0x%x not supported\n", lFlags);