Bug + Solution on CCFileUtils_win32.ccp

Bug + Solution on CCFileUtils_win32.ccp
0.0 0


I have a core2duo machine with Windows 7 Machine 64 bits.

on function *getWriteablePath()* I’m getting a null pointer (char* to string cast doesn’t work well) on Microsoft Visual C*+ Studio 2010 express.
The solution for me it’s to assign the char array to the string.
string CCFileUtils::getWriteablePath
// return the path that the exe file saved in
char full_path;
//string retfull_path); <— getting null pointer
string ret;
ret = full_path; //<— solves the problem
// remove xxx.exe
ret = ret.substr* 1);

return ret;