From b124b4f602097609d37e1287678c720b70169fab Mon Sep 17 00:00:00 2001 From: Roy Tam Date: Sun, 30 Aug 2020 07:32:33 +0800 Subject: [PATCH] add KmAppInfo::GetIs64Bit() to match new XULRunner API from goann3 rev a7bc0406ee460ad17edc80d7d16a8293922e89b9 --- k-meleon/app/KmAppInfo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/k-meleon/app/KmAppInfo.cpp b/k-meleon/app/KmAppInfo.cpp index 5788e58a..7fe82c23 100644 --- a/k-meleon/app/KmAppInfo.cpp +++ b/k-meleon/app/KmAppInfo.cpp @@ -195,6 +195,17 @@ NS_IMETHODIMP KmAppInfo::GetProcessType(uint32_t *aProcessType) return NS_OK; } +/* readonly attribute boolean is64Bit; */ +NS_IMETHODIMP KmAppInfo::GetIs64Bit(bool* aResult) +{ +#ifdef _WIN64 + *aResult = true; +#else + *aResult = false; +#endif + return NS_OK; +} + #include "nsINIParser.h" #define NS_LINEBREAK "\015\012" #define FILE_COMPATIBILITY_INFO NS_LITERAL_CSTRING("compatibility.ini")