MQ2HUD garbage/crash

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

demonstar55
a snow griffon
a snow griffon
Posts: 314
Joined: Fri Nov 28, 2008 6:31 am

MQ2HUD garbage/crash

Post by demonstar55 » Sat Jun 03, 2017 2:28 pm

This never crashed on older windows, but I did get garbage on screen sometimes. I do get crashes on Win10 sometimes though. Bsically, the PreParsed text is never zeroed and sometimes you can display the uninitialized data.

Code: Select all

--- a/MQ2HUD/MQ2HUD.cpp	Wed Feb 15 11:36:06 2017
+++ b/MQ2HUD/MQ2HUD.cpp	Tue Mar 28 00:39:11 2017
@@ -144,6 +144,7 @@
     pElement->Y=Y;
     strcpy_s(pElement->Text,IniString);
     pElement->Size=Size;
+    ZeroMemory(pElement->PreParsed, sizeof(pElement->PreParsed));
 
     DebugSpew("New element '%s' in color %X",pElement->Text,pElement->Color);
 }
Shouldn't really matter where it's put, just stuck it at the bottom :P

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: MQ2HUD garbage/crash

Post by EqMule » Mon Sep 25, 2017 7:45 am

thanks, added
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.