Projects > cpp > Issues > Bug #4379

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

It should be sizeof(wszBuf)/sizeof(wszBuf[0]) but not sizeof(wszBuf) @ _log(..) in CCConsole.cpp

Bug #4379 [Closed]
liangXiao 2014-03-15 02:55 . Updated about 2 years ago

cocos2d-x 3.0beta2
File: CCConsole.cpp
Func: static void log(const char *format, valist args)

BUG:

sizeof(wszBuf) ----> should be
sizeof(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);?

walzer@cocos2d-x.org 2014-10-08 02:46

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

Atom PDF

Status:Closed
Start date:2014-03-15
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:windows
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.