msi: Avoid a crash if a parameter is NULL.

This commit is contained in:
Mike McCormack 2006-04-06 12:45:19 +09:00 committed by Alexandre Julliard
parent 269236c1c8
commit 17e2c3cc61
1 changed files with 3 additions and 0 deletions

View File

@ -350,6 +350,9 @@ static BOOL check_volume(LPCWSTR path, LPCWSTR want_volume, LPWSTR volume,
WCHAR name[MAX_PATH];
UINT type;
if (!want_volume)
return TRUE;
if (!(path[0] && path[1] == ':'))
{
if (intype)