We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
It should be sizeof(wszBuf)/sizeof(wszBuf[0]) but not sizeof(wszBuf) @ _log(..) in CCConsole.cpp
It should be sizeof(wszBuf)/sizeof(wszBuf[0]) but not sizeof(wszBuf) @ _log(..) in CCConsole.cpp
Bug #4379 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8363
Status: | Closed | |
---|---|---|
Start date: | 2014-03-15 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | windows | |
Target version: | - |
cocos2d-x 3.0beta2
File: CCConsole.cpp
Func: static void log(const char *format, valist args)
BUG:¶
sizeof(wszBuf)----> should besizeof(wszBuf) / sizeof(wszBuf[0]) or MAX_LOG_LENGTH ?
WideCharToMultiByte(CP_ACP, 0, wszBuf,
sizeof(wszBuf), buf, sizeof(buf), NULL, FALSE); ---->WideCharToMultiByte(CP_ACP, 0, wszBuf, -1, buf, sizeof(buf), NULL, FALSE);?