Skip to content

Commit 9f73115

Browse files
committed
Also support SYS_WIN32 for SYSKIND in function IsTypeLibRegisteredOnSystem().
1 parent a50c851 commit 9f73115

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/shellextension/TypeLibHelper.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ HRESULT IsTypeLibRegisteredOnSystem(_In_ LPTLIBATTR pTLibAttr)
6161
HRESULT hr;
6262

6363
// guid to string
64-
wchar_t szGUID[64] = { 0 };
64+
wchar_t szGUID[64] = { 0 };
6565
StringFromGUID2(pTLibAttr->guid, szGUID, 64);
6666

6767
// version to string
@@ -74,7 +74,9 @@ HRESULT IsTypeLibRegisteredOnSystem(_In_ LPTLIBATTR pTLibAttr)
7474
const wchar_t * szSysKind = NULL;
7575
switch ( pTLibAttr->syskind )
7676
{
77-
//case SYS_WIN32: // not supported
77+
case SYS_WIN32:
78+
szSysKind = L"win32";
79+
break;
7880
case SYS_WIN64:
7981
szSysKind = L"win64";
8082
break;

0 commit comments

Comments
 (0)