For typelibs index 1 do not add \\1 to the path. This cleans up

registry diffs with native MSI.
This commit is contained in:
Aric Stewart 2005-06-02 15:13:57 +00:00 committed by Alexandre Julliard
parent ae51135ed9
commit ca8c4e4105
1 changed files with 7 additions and 2 deletions

View File

@ -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);