OSDN Git Service

Git Log Cache Basic working
[tortoisegit/TortoiseGitJp.git] / src / Git / Git.cpp
index 7fafa44..d776a13 100644 (file)
@@ -89,7 +89,7 @@ void CGit::StringAppend(CString *str,BYTE *p,int code,int length)
        //buf = new WCHAR[len*4 + 1];\r
        buf = str->GetBuffer(len*4+1+str->GetLength())+str->GetLength();\r
        SecureZeroMemory(buf, (len*4 + 1)*sizeof(WCHAR));\r
-       MultiByteToWideChar(code, 0, (LPCSTR)p, -1, buf, len*4);\r
+       MultiByteToWideChar(code, 0, (LPCSTR)p, len, buf, len*4);\r
        str->ReleaseBuffer();\r
        //str->Append(buf);\r
        //delete buf;\r