Ticket #44299

SVN-Revision9842 Source bug

Eröffnet am: 2022-04-08 23:30 Letztes Update: 2022-04-12 00:17

Auswertung:
(Anonym)
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Priorität:
9 - Höchste
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine
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-Verlauf (3/5 Historien)

2022-04-08 23:30 Aktualisiert von: None
  • New Ticket "SVN-Revision9842 Source bug" created
2022-04-08 23:31 Aktualisiert von: None
Kommentar

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 Aktualisiert von: nmaya
  • Details Updated
2022-04-09 18:41 Aktualisiert von: zmatsuo
Kommentar

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 Aktualisiert von: zmatsuo)
2022-04-12 00:17 Aktualisiert von: zmatsuo
Kommentar

I found 2nd fatal bug and fixed.

Please see r9582 .

If problem has not been resolved, reopen this ticket.

Dateianhangliste

Keine Anhänge

Bearbeiten

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