Mike McCormack : msi: Avoid a crash if a parameter is NULL.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 6 05:52:47 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 17e2c3cc6156591bdea49eba8f199ea20cb7a1f4
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=17e2c3cc6156591bdea49eba8f199ea20cb7a1f4

Author: Mike McCormack <mike at codeweavers.com>
Date:   Thu Apr  6 12:45:19 2006 +0900

msi: Avoid a crash if a parameter is NULL.

---

 dlls/msi/files.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index aa6f8e6..e191fe6 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -350,6 +350,9 @@ static BOOL check_volume(LPCWSTR path, L
     WCHAR name[MAX_PATH];
     UINT type;
 
+    if (!want_volume)
+        return TRUE;
+
     if (!(path[0] && path[1] == ':'))
     {
         if (intype)




More information about the wine-cvs mailing list