Revision: 7426 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7426 Author: zmatsuo Date: 2019-02-11 01:02:18 +0900 (Mon, 11 Feb 2019) Log Message: ----------- CreateFileA()を明示的に使うようにした Modified Paths: -------------- branches/cmake/teraterm/teraterm/ttfileio.c branches/cmake/teraterm/teraterm/ttfileio.h -------------- next part -------------- Modified: branches/cmake/teraterm/teraterm/ttfileio.c =================================================================== --- branches/cmake/teraterm/teraterm/ttfileio.c 2019-02-03 15:22:38 UTC (rev 7425) +++ branches/cmake/teraterm/teraterm/ttfileio.c 2019-02-10 16:02:18 UTC (rev 7426) @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2017 TeraTerm Project + * Copyright (C) 2008-2019 TeraTerm Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -54,7 +54,7 @@ else { PWriteFile = WriteFile; } - PCreateFile = CreateFile; + PCreateFile = CreateFileA; PCloseFile = CloseHandle; return; } Modified: branches/cmake/teraterm/teraterm/ttfileio.h =================================================================== --- branches/cmake/teraterm/teraterm/ttfileio.h 2019-02-03 15:22:38 UTC (rev 7425) +++ branches/cmake/teraterm/teraterm/ttfileio.h 2019-02-10 16:02:18 UTC (rev 7426) @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2017 TeraTerm Project + * Copyright (C) 2008-2019 TeraTerm Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -38,7 +38,7 @@ (HANDLE FHandle, LPCVOID Buff, DWORD WriteSize, LPDWORD WriteBytes, LPOVERLAPPED WriteOverLap); typedef HANDLE (WINAPI *TCreateFile) - (LPCTSTR FName, DWORD AcMode, DWORD ShMode, LPSECURITY_ATTRIBUTES SecAttr, + (LPCSTR FName, DWORD AcMode, DWORD ShMode, LPSECURITY_ATTRIBUTES SecAttr, DWORD CreateDisposition, DWORD FileAttr, HANDLE Template); typedef BOOL (WINAPI *TCloseFile) (HANDLE FHandle);