Module: wine Branch: master Commit: 7e936825e2368b148a38337e4994fab0ba12e50a URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e936825e2368b148a38337e49...
Author: Hans Leidekker hans@codeweavers.com Date: Wed Jan 2 13:33:31 2013 +0100
wmiutils: Validate parameters in IWbemPath::SetText and IWbemPath::GetText.
---
dlls/wmiutils/path.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wmiutils/path.c b/dlls/wmiutils/path.c index a4f3870..e32c9b6 100644 --- a/dlls/wmiutils/path.c +++ b/dlls/wmiutils/path.c @@ -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);