• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revision30ebb6121268fa05348ee68725610b5be16d3f2e (tree)
Zeit2011-11-04 17:14:26
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix bugs of UTF-8 to UTF-16 API bridge.

Ändern Zusammenfassung

Diff

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/mbswrapper.c
+++ b/mbswrapper.c
@@ -1846,6 +1846,20 @@ END_ROUTINE
18461846 return r;
18471847 }
18481848
1849+BOOL CopyFileM(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists)
1850+{
1851+ BOOL r = FALSE;
1852+ wchar_t* pw0 = NULL;
1853+ wchar_t* pw1 = NULL;
1854+START_ROUTINE
1855+ pw0 = DuplicateMtoW(lpExistingFileName, -1);
1856+ pw1 = DuplicateMtoW(lpNewFileName, -1);
1857+ r = CopyFileW(pw0, pw1, bFailIfExists);
1858+END_ROUTINE
1859+ FreeDuplicatedString(pw0);
1860+ return r;
1861+}
1862+
18491863 int mkdirM(const char * _Path)
18501864 {
18511865 int r = 0;
--- a/mbswrapper.h
+++ b/mbswrapper.h
@@ -158,6 +158,9 @@ BOOL sndPlaySoundM(LPCSTR pszSound, UINT fuSound);
158158 #undef SetClipboardData
159159 #define SetClipboardData SetClipboardDataM
160160 HANDLE SetClipboardDataM(UINT uFormat, HANDLE hMem);
161+#undef CopyFile
162+#define CopyFile CopyFileM
163+BOOL CopyFileM(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists);
161164 #undef mkdir
162165 #define mkdir _mkdirM
163166 int mkdirM(const char * _Path);