Print Page | Close Window

MBCS Chinese crashed..

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=19231
Printed Date: 27 September 2024 at 1:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MBCS Chinese crashed..
Posted By: zhengle
Subject: MBCS Chinese crashed..
Date Posted: 28 November 2011 at 1:57am
i built the project using MBCS. When I used syntax edit for some lua file(which has Chinese comments), it crashed. I debug the problem, and found the code snippet:
 TCSLWR_S((LPTSTR)&dwChar0, 2);
the parameter "2" means sizeInWords, actually in MBCS version, we needs "size in bytes" which is 4.

I am not quite sure if it's a bug or has some other consideration. So i report it here for your reference.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net