Index: windows-NT/posixdir/cvsflt/cvsflt.cpp =================================================================== RCS file: /cvs/cvsnt/windows-NT/posixdir/cvsflt/cvsflt.cpp,v retrieving revision 1.1.2.5.4.2 diff -c -r1.1.2.5.4.2 cvsflt.cpp *** windows-NT/posixdir/cvsflt/cvsflt.cpp 11 Sep 2012 06:04:39 -0000 1.1.2.5.4.2 --- windows-NT/posixdir/cvsflt/cvsflt.cpp 18 Sep 2012 12:03:54 -0000 *************** *** 18,23 **** --- 18,37 ---- #include "cvsflt.h" #include "cvsflt_pub.h" + struct AtoW + { + AtoW(LPCSTR szFrom) { + size_t l = strlen(szFrom)+1; buf = new WCHAR[l]; + MultiByteToWideChar(CP_THREAD_ACP,0,szFrom,l,buf,l); + } + ~AtoW() { delete[] buf; } + + operator LPCWSTR() { return buf; } + + private: + LPWSTR buf; + }; + static HANDLE g_hCvsFlt; static int lstrncmpA(LPCSTR str1, LPCSTR str2, size_t len) *************** *** 112,118 **** BOOL CvsAddPosixDirectoryA(LPCSTR dir, BOOL temp) { ! return FALSE; } BOOL CvsAddPosixDirectoryW(LPCWSTR dir, BOOL temp) --- 126,132 ---- BOOL CvsAddPosixDirectoryA(LPCSTR dir, BOOL temp) { ! return CvsAddPosixDirectoryW(AtoW(dir), temp); } BOOL CvsAddPosixDirectoryW(LPCWSTR dir, BOOL temp) *************** *** 140,146 **** BOOL CvsRemovePosixDirectoryA(LPCSTR dir, BOOL temp) { ! return FALSE; } BOOL CvsRemovePosixDirectoryW(LPCWSTR dir, BOOL temp) --- 154,160 ---- BOOL CvsRemovePosixDirectoryA(LPCSTR dir, BOOL temp) { ! return CvsRemovePosixDirectoryW(AtoW(dir),temp); } BOOL CvsRemovePosixDirectoryW(LPCWSTR dir, BOOL temp)