Revision: 8468 https://osdn.net/projects/ttssh2/scm/svn/commits/8468 Author: zmatsuo Date: 2020-01-10 22:14:18 +0900 (Fri, 10 Jan 2020) Log Message: ----------- TTXCheckUpdate警告対策 Modified Paths: -------------- trunk/TTXSamples/TTXCheckUpdate/getcontent.cpp trunk/TTXSamples/TTXCheckUpdate/getcontent.h trunk/TTXSamples/TTXCheckUpdate/parse.cpp trunk/TTXSamples/TTXCheckUpdate/ttxcheckupdate.c -------------- next part -------------- Modified: trunk/TTXSamples/TTXCheckUpdate/getcontent.cpp =================================================================== --- trunk/TTXSamples/TTXCheckUpdate/getcontent.cpp 2020-01-10 13:14:06 UTC (rev 8467) +++ trunk/TTXSamples/TTXCheckUpdate/getcontent.cpp 2020-01-10 13:14:18 UTC (rev 8468) @@ -1,12 +1,8 @@ #include <windows.h> #include <wininet.h> -#include <string> -#include <sstream> -#include <locale.h> -#include <conio.h> -#include <tchar.h> #define _CRTDBG_MAP_ALLOC +#include <stdlib.h> #include <crtdbg.h> #if (defined(_MSC_VER) && (_MSC_VER >= 1600)) || !defined(_MSC_VER) Modified: trunk/TTXSamples/TTXCheckUpdate/getcontent.h =================================================================== --- trunk/TTXSamples/TTXCheckUpdate/getcontent.h 2020-01-10 13:14:06 UTC (rev 8467) +++ trunk/TTXSamples/TTXCheckUpdate/getcontent.h 2020-01-10 13:14:18 UTC (rev 8468) @@ -1,7 +1,5 @@ #include <stdlib.h> -#include <tchar.h> -//#include <stdbool.h> #include <windows.h> #ifdef __cplusplus Modified: trunk/TTXSamples/TTXCheckUpdate/parse.cpp =================================================================== --- trunk/TTXSamples/TTXCheckUpdate/parse.cpp 2020-01-10 13:14:06 UTC (rev 8467) +++ trunk/TTXSamples/TTXCheckUpdate/parse.cpp 2020-01-10 13:14:18 UTC (rev 8468) @@ -1,7 +1,6 @@ -#include <windows.h> -#include <wininet.h> -#include <tchar.h> + #define _CRTDBG_MAP_ALLOC +#include <stdlib.h> #include <crtdbg.h> #include "cJSON/cJSON.h" Modified: trunk/TTXSamples/TTXCheckUpdate/ttxcheckupdate.c =================================================================== --- trunk/TTXSamples/TTXCheckUpdate/ttxcheckupdate.c 2020-01-10 13:14:06 UTC (rev 8467) +++ trunk/TTXSamples/TTXCheckUpdate/ttxcheckupdate.c 2020-01-10 13:14:18 UTC (rev 8468) @@ -141,7 +141,7 @@ } swprintf(agent, _countof(agent), L"%s_%d", agent_base, pvar->ts->RunningVersion); - result_bool = GetContent(update_info_url, agent, &json_raw_ptr, &json_raw_size); + result_bool = GetContent(update_info_url, agent, (void**)&json_raw_ptr, &json_raw_size); if (!result_bool) { MessageBoxW(hWnd, L"access error?", L"Tera Term", MB_OK | MB_ICONEXCLAMATION); return;