ctrl: break debug string events apart if needed; enforce size cap on serialized ctrl events

This commit is contained in:
Ryan Fleury
2024-06-13 16:24:54 -07:00
parent 3c39a88abf
commit fa4d0bc262
3 changed files with 29 additions and 13 deletions
+8
View File
@@ -2297,6 +2297,14 @@ debug_string_tests(void)
{
OutputDebugStringA("Hello, World!\n");
}
char message[65409+1];
memset(&message[0], '=', sizeof(message));
for(int i = 1; i < sizeof(message); i += 128)
{
message[i] = '\n';
}
message[sizeof(message) - 1] = 0;
OutputDebugStringA(message);
#endif
}