Skip to content

Commit fb3c19e

Browse files
committed
Add check for WPS Spreadsheets to enable AppDomain isolation
1 parent 9389be4 commit fb3c19e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source/ExcelDna/ExcelDnaLoader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,15 +709,16 @@ void LoaderUnload()
709709
BOOL IsRunningOnCluster()
710710
{
711711
// Our check is to see if the current process is called Excel.exe.
712-
// Hopefully this doen't change soon.
712+
// Hopefully this doesn't change soon.
713+
// (Also added support for WPS Spreadsheets - et.exe)
713714

714715
TCHAR hostPathName[MAX_PATH];
715716
DWORD count = GetModuleFileName(NULL, hostPathName, MAX_PATH);
716717

717718
std::wstring hostPath = hostPathName;
718719
StripPath(hostPath);
719720

720-
if (CompareNoCase(hostPath, L"EXCEL.EXE") == 0)
721+
if (CompareNoCase(hostPath, L"EXCEL.EXE") == 0 || CompareNoCase(hostPath, L"ET.EXE") == 0)
721722
{
722723
return false;
723724
}

0 commit comments

Comments
 (0)