Ticket #44299

SVN-Revision9842 Source bug

Open Date: 2022-04-08 23:30 Last Update: 2022-04-12 00:17

Reporter:
(Anonymous)
Owner:
Type:
Status:
Closed
Component:
Priority:
9 - Highest
Severity:
5 - Medium
Resolution:
Fixed
File:
None
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++;

Ticket History (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
Comment

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
Comment

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
Comment

I found 2nd fatal bug and fixed.

Please see r9582 .

If problem has not been resolved, reopen this ticket.

Attachment File List

No attachments

Edit

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