Module: wine Branch: master Commit: 9e30f77568ded311a6c3141f9b9b27951d8e441e URL: http://source.winehq.org/git/wine.git/?a=commit;h=9e30f77568ded311a6c3141f9b...
Author: Hans Leidekker hans@codeweavers.com Date: Thu Dec 23 17:08:10 2010 +0100
msi: Add some traces.
---
dlls/msi/msi.c | 8 ++++++-- dlls/msi/registry.c | 5 +++-- 2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 0fe8ea0..e66585c 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1942,6 +1942,7 @@ UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode, *pdwState = INSTALLSTATE_LOCAL; }
+ TRACE("-> %d\n", *pdwState); return ERROR_SUCCESS; }
@@ -2018,6 +2019,7 @@ done:
RegCloseKey(prodkey); RegCloseKey(userdata); + TRACE("-> %d\n", state); return state; }
@@ -2725,7 +2727,7 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature) else r = INSTALLSTATE_LOCAL;
- TRACE("%s %s -> %d\n", debugstr_w(szProduct), debugstr_w(szFeature), r); + TRACE("-> %d\n", r); return r; }
@@ -3666,8 +3668,10 @@ UINT WINAPI MsiGetFileHashW( LPCWSTR szFilePath, DWORD dwOptions, handle = CreateFileW( szFilePath, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, 0, NULL ); if (handle == INVALID_HANDLE_VALUE) + { + WARN("can't open file %u\n", GetLastError()); return ERROR_FILE_NOT_FOUND; - + } length = GetFileSize( handle, NULL );
mapping = CreateFileMappingW( handle, NULL, PAGE_READONLY, 0, 0, NULL ); diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index 0a063e4..926c90d 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -1549,10 +1549,11 @@ UINT WINAPI MsiEnumClientsW(LPCWSTR szComponent, DWORD index, LPWSTR szProduct) sz = SQUISH_GUID_SIZE; r = RegEnumValueW(hkeyComp, index, szValName, &sz, NULL, NULL, NULL, NULL); if( r == ERROR_SUCCESS ) + { unsquash_guid(szValName, szProduct); - + TRACE("-> %s\n", debugstr_w(szProduct)); + } RegCloseKey(hkeyComp); - return r; }