Added patch for TRACE in msi_get_property.

This commit is contained in:
Sebastian Lackner 2015-10-02 01:49:35 +02:00
parent f4dcef9c77
commit f9edeb7354
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From bd87e9b33291eec35df547cfda6eac3c4b826d8b Mon Sep 17 00:00:00 2001
From: Dmitry Timoshkov <dmitry@baikal.ru>
Date: Wed, 23 Sep 2015 16:07:30 +0800
Subject: msi: Add a trace to msi_get_property.
msi_set_property already has a similar trace and this patch makes it easier
to see what is going on.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
---
dlls/msi/package.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index 7ab2b19..01d2e89 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -2125,6 +2125,8 @@ UINT msi_get_property( MSIDATABASE *db, LPCWSTR szName,
MSIRECORD *row;
UINT rc = ERROR_FUNCTION_FAILED;
+ TRACE("%p %s %p %p\n", db, debugstr_w(szName), szValueBuf, pchValueBuf);
+
row = msi_get_property_row( db, szName );
if (*pchValueBuf > 0)
--
2.5.1

View File

@ -175,6 +175,7 @@ patch_enable_all ()
enable_mountmgr_DosDevices="$1"
enable_mscoree_CorValidateImage="$1"
enable_mshtml_HTMLLocation_put_hash="$1"
enable_msi_msi_get_property="$1"
enable_msidb_Implementation="$1"
enable_msvcp90_basic_string_dtor="$1"
enable_msvcrt_Math_Precision="$1"
@ -626,6 +627,9 @@ patch_enable ()
mshtml-HTMLLocation_put_hash)
enable_mshtml_HTMLLocation_put_hash="$2"
;;
msi-msi_get_property)
enable_msi_msi_get_property="$2"
;;
msidb-Implementation)
enable_msidb_Implementation="$2"
;;
@ -3813,6 +3817,18 @@ if test "$enable_mshtml_HTMLLocation_put_hash" -eq 1; then
) >> "$patchlist"
fi
# Patchset msi-msi_get_property
# |
# | Modified files:
# | * dlls/msi/package.c
# |
if test "$enable_msi_msi_get_property" -eq 1; then
patch_apply msi-msi_get_property/0001-msi-Add-a-trace-to-msi_get_property.patch
(
echo '+ { "Dmitry Timoshkov", "msi: Add a trace to msi_get_property.", 1 },';
) >> "$patchlist"
fi
# Patchset msidb-Implementation
# |
# | Modified files: