summaryrefslogtreecommitdiff
path: root/cad/kicad-devel/files/patch-thirdparty_compoundfilereader_compoundfilereader.h
blob: e597e5a500738ec322cd2e2382b8712287364fcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- thirdparty/compoundfilereader/compoundfilereader.h.orig	2025-08-13 00:57:26 UTC
+++ thirdparty/compoundfilereader/compoundfilereader.h
@@ -261,7 +261,7 @@ struct helper
     }
 };
 
-typedef std::basic_string<uint16_t> utf16string;
+typedef std::basic_string<char16_t> utf16string;
 typedef std::function<int(const COMPOUND_FILE_ENTRY*, const utf16string& dir, int level)>
     EnumFilesCallback;
 
@@ -379,7 +379,7 @@ class CompoundFileReader (private)
             utf16string newDir = dir;
             if (dir.length() != 0)
                 newDir.append(1, '\n');
-            newDir.append(entry->name, entry->nameLen / 2);
+            newDir.append(reinterpret_cast<const char16_t*>(entry->name), entry->nameLen / 2);
             EnumNodes(GetEntry(entry->childID), currentLevel + 1, maxLevel, newDir, callback);
         }