Add patch to fix issues with msi/ITERATE_MoveFiles.

This commit is contained in:
Sebastian Lackner
2014-08-14 01:43:30 +02:00
parent 046a795ef1
commit 03b7601b4c
4 changed files with 57 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ PATCHLIST := \
kernel32-SystemFileCacheSize.ok \
libs-Unicode_Collation.ok \
loader-Cmdline_Diagnostics.ok \
msi-MoveFiles.ok \
ntdll-Dynamic_DST.ok \
ntdll-FD_Cache.ok \
ntdll-FileDispositionInformation.ok \
@@ -359,6 +360,24 @@ loader-Cmdline_Diagnostics.ok:
echo '+ { "loader-Cmdline_Diagnostics", "Michael Müller", "Add commandline option --check-libs to test if shared libraries are installed." },'; \
) > loader-Cmdline_Diagnostics.ok
# Patchset msi-MoveFiles
# |
# | Included patches:
# | * Fix ITERATE_MoveFiles when no source- and destname is specified. [by Sebastian Lackner]
# |
# | This patchset fixes the following Wine bugs:
# | * [#10085] Fix ITERATE_MoveFiles when no source- and destname is specified
# |
# | Modified files:
# | * dlls/msi/files.c
# |
.INTERMEDIATE: msi-MoveFiles.ok
msi-MoveFiles.ok:
$(call APPLY_FILE,msi-MoveFiles/0001-msi-Fix-ITERATE_MoveFiles-when-no-source-and-destnam.patch)
@( \
echo '+ { "msi-MoveFiles", "Sebastian Lackner", "Fix ITERATE_MoveFiles when no source- and destname is specified." },'; \
) > msi-MoveFiles.ok
# Patchset ntdll-Dynamic_DST
# |
# | Included patches:

View File

@@ -0,0 +1,32 @@
From 43743ce1c92eeb824eb489f0a4b06e81e28a3426 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Thu, 14 Aug 2014 01:39:13 +0200
Subject: msi: Fix ITERATE_MoveFiles when no source- and destname is
specified.
---
dlls/msi/files.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index ec46ae3..62e5f43 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -843,7 +843,13 @@ static UINT ITERATE_MoveFiles( MSIRECORD *rec, LPVOID param )
{
if (!wildcards)
{
- destname = strdupW(sourcename);
+ WCHAR *p;
+ if (sourcename)
+ destname = strdupW(sourcename);
+ else if ((p = strrchrW(sourcedir, '\\')))
+ destname = strdupW(p + 1);
+ else
+ destname = strdupW(sourcedir);
if (!destname)
goto done;
}
--
1.7.9.5

View File

@@ -0,0 +1,4 @@
Author: Sebastian Lackner
Subject: Fix ITERATE_MoveFiles when no source- and destname is specified.
Revision: 1
Fixes: [10085] Fix ITERATE_MoveFiles when no source- and destname is specified