From f6204a7ca8f39d138ef54e391aff9c0867cec4d9 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 17 Apr 2024 16:30:00 +0200 Subject: [PATCH] [XPCOM] Warn about .xrm-ms files on Windows (treat as executable) --- xpcom/io/nsLocalFileWin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 8b063802ed..0b9b8f8ded 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -3095,7 +3095,8 @@ nsLocalFile::IsExecutable(bool* aResult) "wsc", "wsf", "wsh", - "xll" // MS Excel dynamic link library + "xll", // MS Excel dynamic link library + "xrm-ms" }; nsDependentSubstring ext = Substring(path, dotIdx + 1); for (size_t i = 0; i < ArrayLength(executableExts); ++i) {