[ttssh2-commit] [9486] OutputDebugHexDump() から OutputDebugPrintf() を呼び出さないよう修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 10月 23日 (土) 01:09:28 JST


Revision: 9486
          https://osdn.net/projects/ttssh2/scm/svn/commits/9486
Author:   zmatsuo
Date:     2021-10-23 01:09:28 +0900 (Sat, 23 Oct 2021)
Log Message:
-----------
OutputDebugHexDump() から OutputDebugPrintf() を呼び出さないよう修正

common_statc.lib が ttlib.c に依存しないよう修正

Modified Paths:
--------------
    trunk/teraterm/common/ttlib_static_cpp.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/ttlib_static_cpp.cpp
===================================================================
--- trunk/teraterm/common/ttlib_static_cpp.cpp	2021-10-22 16:09:19 UTC (rev 9485)
+++ trunk/teraterm/common/ttlib_static_cpp.cpp	2021-10-22 16:09:28 UTC (rev 9486)
@@ -457,7 +457,10 @@
 
 static void OutputDebugHexDumpSub(const char *s)
 {
-	OutputDebugPrintf("%s\n", s);
+	char *s_cr;
+	asprintf(&s_cr, "%s\n", s);
+	OutputDebugStringA(s_cr);
+	free(s_cr);
 }
 
 void OutputDebugHexDump(const void *data, size_t len)


ttssh2-commit メーリングリストの案内
Back to archive index