keygendr32/Keygender32/Debug.c

21 lines
325 B
C
Raw Permalink Normal View History

2024-03-21 06:09:10 +00:00
#include "stdafx.h"
#include "Debug.h"
#include <stdio.h>
#include <stdarg.h>
#ifdef _DEBUG
void
_DebugPrintf(LPCTSTR fmt, ...)
{
va_list args;
TCHAR szBuf[256] = {0};
va_start(args, fmt);
if (SUCCEEDED(_vsntprintf_s(szBuf, 256, 255, fmt, args))) {
OutputDebugString(szBuf);
}
return;
}
#endif