From ca8c4e4105b605107fc2b79908946eb1a5f81bbc Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 2 Jun 2005 15:13:57 +0000 Subject: [PATCH] For typelibs index 1 do not add \\1 to the path. This cleans up registry diffs with native MSI. --- dlls/msi/action.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 2dc8fdc4a9b..6a7c84c8599 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -4259,8 +4259,13 @@ BOOL CALLBACK Typelib_EnumResNameProc( HMODULE hModule, LPCWSTR lpszType, sz = strlenW(tl_struct->source)+4; sz *= sizeof(WCHAR); - tl_struct->path = HeapAlloc(GetProcessHeap(),0,sz); - sprintfW(tl_struct->path,fmt,tl_struct->source, lpszName); + if ((INT)lpszName == 1) + tl_struct->path = strdupW(tl_struct->source); + else + { + tl_struct->path = HeapAlloc(GetProcessHeap(),0,sz); + sprintfW(tl_struct->path,fmt,tl_struct->source, lpszName); + } TRACE("trying %s\n", debugstr_w(tl_struct->path)); res = LoadTypeLib(tl_struct->path,&tl_struct->ptLib);