标签:mat out debug bugs free buffer rgs har print
void __cdecl OutputDebugStringF(const char* format, ...)
{
va_list vlArgs;
char* strBuffer = (char*)GlobalAlloc(GPTR, 4096);
va_start(vlArgs, format);
_vsnprintf(strBuffer, 4096 - 1, format, vlArgs);
va_end(vlArgs);
strcat(strBuffer, "\n");
OutputDebugStringA(strBuffer);
GlobalFree(strBuffer);
return;
}
标签:mat out debug bugs free buffer rgs har print
原文地址:https://www.cnblogs.com/simazhongda/p/12348413.html