Commit 7e936825 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 0ee1b888
......@@ -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);
......
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