Skip to content

Commit 412fa2a

Browse files
fixup minor bug.
1 parent 65a0b60 commit 412fa2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

WinArk/TreeImportExport.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ void TreeImportExport::ParseAllElementModules(tinyxml2::XMLElement* pTargetEleme
8888
for (tinyxml2::XMLElement* pModuleElement = pTargetElement->FirstChildElement();
8989
pModuleElement; pModuleElement = pModuleElement->NextSiblingElement()) {
9090
std::string moduleName = pModuleElement->Attribute("module_name");
91+
std::wstring wname = Helpers::StringToWstring(moduleName);
92+
wcscpy_s(importModuleThunk.m_ModuleName, wname.c_str());
9193
if (!moduleName.empty()) {
9294
importModuleThunk.m_FirstThunk = ConvertStringToDwordPtr(pModuleElement->Attribute("first_thunk_rva"));
9395
importModuleThunk.m_ThunkMap.clear();

0 commit comments

Comments
 (0)