keygendr32/Keygender32/Debug.c
2024-03-20 23:09:10 -07:00

21 lines
325 B
C

#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