任务单 #44299

SVN-Revision9842 Source bug

开放日期: 2022-04-08 23:30 最后更新: 2022-04-12 00:17

报告人:
(匿名)
属主:
类型:
状态:
关闭
组件:
优先:
9 - Highest
严重性:
5 - Medium
处理结果:
Fixed
文件:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

In SVN-Revision9842, I have found two fatal bugs in window11 with vs2022:

ttermpro<=>DDE<=>ttpmacro

1. ttpmacro file :ttmdde.c line:277

        Service= DdeCreateStringHandle(Inst, ServiceName, CP_WINANSI);
	Topic  = DdeCreateStringHandleW(Inst, TopicName, CP_WINANSI);
	Item   = DdeCreateStringHandle(Inst, ItemName, CP_WINANSI);
	Item2  = DdeCreateStringHandle(Inst, ItemName2, CP_WINANSI);

Mixing multi-byte and two-byte functions causes the DdeConnect function to return an error code of 0x400A;

2. ttpmacro file :ttmdde.c line:122 A static variable :cv_DCount

This variable needs to add itself,like this:

else
  cv_DCount++;

任务单历史 (3/5 Histories)

2022-04-08 23:30 Updated by: None
  • New Ticket "SVN-Revision9842 Source bug" created
2022-04-08 23:31 Updated by: None
评论

Reply To (Anonymous)

In SVN-Revision9842, I have found two fatal bugs in window11 with vs2022: ttermpro<=>DDE<=>ttpmacro 1 ttpmacro file :ttmdde.c line:277 Service= DdeCreateStringHandle(Inst, ServiceName, CP_WINANSI); Topic = DdeCreateStringHandleW(Inst, TopicName, CP_WINANSI); Item = DdeCreateStringHandle(Inst, ItemName, CP_WINANSI); Item2 = DdeCreateStringHandle(Inst, ItemName2, CP_WINANSI); Mixing multi-byte and two-byte functions causes the DdeConnect function to return an error code of 0x400A; 2 ttpmacro file :ttmdde.c line:122 A static variable :cv_DCount This variable needs to add itself,like this: else cv_DCount++; Thinks ! liban@whec8.cn

2022-04-09 09:34 Updated by: nmaya
  • Details Updated
2022-04-09 18:41 Updated by: zmatsuo
评论

Thank you for report.

1. ttpmacro file :ttmdde.c line:277

Fixed in r9851 .

2. ttpmacro file :ttmdde.c line:122 A static variable :cv_DCount

Please use patch (patch format) to tell us where to fix.

(Edited, 2022-04-12 00:17 Updated by: zmatsuo)
2022-04-12 00:17 Updated by: zmatsuo
评论

I found 2nd fatal bug and fixed.

Please see r9582 .

If problem has not been resolved, reopen this ticket.

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名