msi: Use mi->source if the source is not a full path

James Hawkins truiken at gmail.com
Wed Nov 29 22:30:01 CST 2006


Hi,

Changelog:
* Use mi->source if the source is not a full path.

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

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index cf7baf4..a4819fc 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -483,6 +483,9 @@ static UINT download_remote_cabinet(MSIP
 
     *(ptr + 1) = '\0';
     ptr = strrchrW(mi->source, '\\');
+    if (!ptr)
+        ptr = mi->source;
+
     src = msi_realloc(src, (lstrlenW(src) + lstrlenW(ptr)) * sizeof(WCHAR));
     if (!src)
         return ERROR_OUTOFMEMORY;
-- 
1.4.2.4


More information about the wine-patches mailing list