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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 30 06:44:15 CST 2006


Module: wine
Branch: master
Commit: a64945baeab3f6ccf41494dba078b16c92fde3bc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a64945baeab3f6ccf41494dba078b16c92fde3bc

Author: James Hawkins <truiken at gmail.com>
Date:   Wed Nov 29 20:30:01 2006 -0800

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

---

 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 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;




More information about the wine-cvs mailing list