mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-11 05:29:55 +00:00
Check for Utf-8 string conversion failure & clean-up in dtor
This commit is contained in:
parent
33527e1e06
commit
d2026e0881
@ -261,6 +261,9 @@ BYTE Pravets::ConvertToKeycode(WPARAM key, BYTE keycode)
|
||||
|
||||
BYTE Pravets::ConvertToPrinterChar(BYTE value)
|
||||
{
|
||||
if (m_Kir8ACapital == 0 || m_Kir8ALowerCase == 0 || m_Kir82 == 0)
|
||||
return value;
|
||||
|
||||
BYTE c = 0;
|
||||
|
||||
if (GetApple2Type() == A2TYPE_PRAVETS8A) // Print conversion for Pravets 8A/C
|
||||
|
@ -4,7 +4,12 @@ class Pravets
|
||||
{
|
||||
public:
|
||||
Pravets(void);
|
||||
~Pravets(void){}
|
||||
~Pravets(void)
|
||||
{
|
||||
delete [] m_Kir8ACapital;
|
||||
delete [] m_Kir8ALowerCase;
|
||||
delete [] m_Kir82;
|
||||
}
|
||||
|
||||
void Reset(void);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user