Module: wine Branch: refs/heads/master Commit: 4642221875ecf9eac02fb20538ad5f2ff346b349 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4642221875ecf9eac02fb205...
Author: Mike McCormack mike@codeweavers.com Date: Wed Jul 19 17:18:02 2006 +0900
msi: Fix the size of base 85 GUIDs.
---
dlls/msi/msi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 11e552a..d3da4c4 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1117,7 +1117,7 @@ end: */ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature) { - WCHAR squishProduct[GUID_SIZE], comp[39]; + WCHAR squishProduct[33], comp[GUID_SIZE]; GUID guid; LPWSTR components, p, parent_feature; UINT rc; @@ -1166,14 +1166,14 @@ INSTALLSTATE WINAPI MsiQueryFeatureState }
r = INSTALLSTATE_LOCAL; - for( p = components; (*p != 2) && (lstrlenW(p) > GUID_SIZE); p += GUID_SIZE) + for( p = components; (*p != 2) && (lstrlenW(p) > 20); p += 20) { if (!decode_base85_guid( p, &guid )) { ERR("%s\n", debugstr_w(p)); break; } - StringFromGUID2(&guid, comp, 39); + StringFromGUID2(&guid, comp, GUID_SIZE); r = MsiGetComponentPathW(szProduct, comp, NULL, 0); if (r != INSTALLSTATE_LOCAL && r != INSTALLSTATE_SOURCE) {