Skip to content

Commit 181491b

Browse files
committed
Revert "MinGW版sprintfのデグレ対策"
This reverts commit f542b65.
1 parent ee44937 commit 181491b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sakura_core/macro/CPPA.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ char* CPPA::GetDeclarations( const MacroFuncInfo& cMacroFuncInfo, char* szBuffer
247247
strcpy( szArguments[i], "u0: Unknown" );
248248
}
249249
}
250-
std::filesystem::path funcName(cMacroFuncInfo.m_pszFuncName);
251250
if ( i > 0 ){ // 引数があったとき
252251
int j;
253252
char szArgument[8*20];
@@ -257,18 +256,18 @@ char* CPPA::GetDeclarations( const MacroFuncInfo& cMacroFuncInfo, char* szBuffer
257256
strcat( szArgument, "; " );
258257
strcat( szArgument, szArguments[j] );
259258
}
260-
auto_sprintf( szBuffer, "%hs S_%hs(%hs)%hs; index %d;",
259+
auto_sprintf( szBuffer, "%hs S_%ls(%hs)%hs; index %d;",
261260
szType,
262-
funcName.string().c_str(),
261+
cMacroFuncInfo.m_pszFuncName,
263262
szArgument,
264263
szReturn,
265264
cMacroFuncInfo.m_nFuncID
266265
);
267266
}
268267
else {
269-
auto_sprintf( szBuffer, "%hs S_%hs%hs; index %d;",
268+
auto_sprintf( szBuffer, "%hs S_%ls%hs; index %d;",
270269
szType,
271-
funcName.string().c_str(),
270+
cMacroFuncInfo.m_pszFuncName,
272271
szReturn,
273272
cMacroFuncInfo.m_nFuncID
274273
);

0 commit comments

Comments
 (0)