Commit 8caef535 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Return an error in MsiGetComponentPathW if passed a null component.

parent 029c83d8
...@@ -418,7 +418,7 @@ UINT WINAPI MsiGetProductCodeW(LPCWSTR szComponent, LPWSTR szBuffer) ...@@ -418,7 +418,7 @@ UINT WINAPI MsiGetProductCodeW(LPCWSTR szComponent, LPWSTR szBuffer)
DWORD sz = GUID_SIZE; DWORD sz = GUID_SIZE;
static const WCHAR szPermKey[] = static const WCHAR szPermKey[] =
{ '0','0','0','0','0','0','0','0','0','0','0','0', { '0','0','0','0','0','0','0','0','0','0','0','0',
'0','0','0','0','0','0','0', '0','0','0','0','0', '0','0','0','0','0','0','0','0','0','0','0','0',
'0','0','0','0','0','0','0','0',0}; '0','0','0','0','0','0','0','0',0};
TRACE("%s %p\n",debugstr_w(szComponent), szBuffer); TRACE("%s %p\n",debugstr_w(szComponent), szBuffer);
...@@ -1011,6 +1011,8 @@ INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR szProduct, LPCWSTR szComponent, ...@@ -1011,6 +1011,8 @@ INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR szProduct, LPCWSTR szComponent,
TRACE("%s %s %p %p\n", debugstr_w(szProduct), TRACE("%s %s %p %p\n", debugstr_w(szProduct),
debugstr_w(szComponent), lpPathBuf, pcchBuf); debugstr_w(szComponent), lpPathBuf, pcchBuf);
if( !szComponent )
return INSTALLSTATE_INVALIDARG;
if( lpPathBuf && !pcchBuf ) if( lpPathBuf && !pcchBuf )
return INSTALLSTATE_INVALIDARG; return INSTALLSTATE_INVALIDARG;
......
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