2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-13 18:17:49 -04:00

This can be done on the stack...

This commit is contained in:
2011-04-11 19:35:21 -07:00
parent 7811c56489
commit 9041c0447f

View File

@ -208,8 +208,8 @@ char plKeyboardDevice::KeyEventToChar( plKeyEventMsg *msg )
{
short code = msg->GetKeyCode();
char c = 0;
unsigned char *kbState = TRACKED_NEW unsigned char[256];
unsigned char *buffer = TRACKED_NEW unsigned char[256];
unsigned char kbState[256];
unsigned char buffer[256];
UINT scanCode;
int retVal;
@ -320,9 +320,6 @@ char plKeyboardDevice::KeyEventToChar( plKeyEventMsg *msg )
break;
}
delete [] kbState;
delete [] buffer;
return c;
}