summarylogtreecommitdiffstats
path: root/0002-Provide-Windows-XP-support.patch
blob: 15f36a3f389c5965ebf1a00503c1bb7c6cf9cd42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 8e25f3d25b3a3817e0e5b3aab5968a21e64b8c7e Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Tue, 9 Aug 2016 19:15:20 +0200
Subject: [PATCH 02/10] Provide Windows XP support

---
 src/common/string_utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/string_utils.cpp b/src/common/string_utils.cpp
index bb1edd2..2e6e228 100644
--- a/src/common/string_utils.cpp
+++ b/src/common/string_utils.cpp
@@ -141,7 +141,7 @@ bool ReadFileToString(const std::string &path, std::string *stringOut)
 Optional<std::vector<wchar_t>> WidenString(size_t length, const char *cString)
 {
     std::vector<wchar_t> wcstring(length + 1);
-#if !defined(ANGLE_PLATFORM_WINDOWS)
+#if !defined(ANGLE_PLATFORM_WINDOWS) || defined(ANGLE_WINDOWS_XP_SUPPORT)
     size_t written = mbstowcs(wcstring.data(), cString, length + 1);
     if (written == 0)
     {
-- 
2.10.2