Andrew Nguyen : setupapi: Add a few traces for SetupDecompressOrCopyFileW.
Alexandre Julliard
julliard at winehq.org
Wed Jun 16 13:23:22 CDT 2010
Module: wine
Branch: master
Commit: 6456e14055584db1d67238a5e70c3bc42c881695
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6456e14055584db1d67238a5e70c3bc42c881695
Author: Andrew Nguyen <anguyen at codeweavers.com>
Date: Tue Jun 15 22:06:56 2010 -0500
setupapi: Add a few traces for SetupDecompressOrCopyFileW.
---
dlls/setupapi/misc.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c
index 6e83962..e7ccfe6 100644
--- a/dlls/setupapi/misc.c
+++ b/dlls/setupapi/misc.c
@@ -1474,6 +1474,8 @@ static UINT CALLBACK decompress_or_copy_callback( PVOID context, UINT notificati
if (context_info->has_extracted)
return FILEOP_ABORT;
+ TRACE("Requesting extraction of cabinet file %s\n",
+ wine_dbgstr_w(info->NameInCabinet));
strcpyW( info->FullTargetName, context_info->target );
context_info->has_extracted = 1;
return FILEOP_DOIT;
@@ -1537,10 +1539,20 @@ DWORD WINAPI SetupDecompressOrCopyFileW( PCWSTR source, PCWSTR target, PUINT typ
UINT comp;
DWORD ret = ERROR_INVALID_PARAMETER;
+ TRACE("(%s, %s, %p)\n", debugstr_w(source), debugstr_w(target), type);
+
if (!source || !target) return ERROR_INVALID_PARAMETER;
- if (!type) comp = detect_compression_type( source );
- else comp = *type;
+ if (!type)
+ {
+ comp = detect_compression_type( source );
+ TRACE("Detected compression type %u\n", comp);
+ }
+ else
+ {
+ comp = *type;
+ TRACE("Using specified compression type %u\n", comp);
+ }
switch (comp)
{
More information about the wine-cvs
mailing list