From 17e2c3cc6156591bdea49eba8f199ea20cb7a1f4 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 6 Apr 2006 12:45:19 +0900 Subject: [PATCH] msi: Avoid a crash if a parameter is NULL. --- dlls/msi/files.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/msi/files.c b/dlls/msi/files.c index aa6f8e61ea8..e191fe6c1d5 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -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) -- 2.11.4.GIT