MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / DbgPrintAlways

Function DbgPrintAlways

libcppcryptfs/util/util.cpp:798–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796}
797#if 1
798void DbgPrintAlways(LPCWSTR format, ...) {
799
800 const WCHAR* outputString;
801 WCHAR* buffer = NULL;
802 size_t length;
803 va_list argp;
804
805 va_start(argp, format);
806 length = _vscwprintf(format, argp) + 1;
807 buffer = (WCHAR*)_malloca(length * sizeof(WCHAR));
808 if (buffer) {
809 vswprintf_s(buffer, length, format, argp);
810 outputString = buffer;
811 } else {
812 outputString = format;
813 }
814 if (s_UseStdErr) {
815 fputws(outputString, stderr);
816 } else if (s_UseLogFile && s_DebugLogFile) {
817 fputws(outputString, s_DebugLogFile);
818 fflush(s_DebugLogFile);
819 } else {
820 OutputDebugStringW(outputString);
821 }
822 if (buffer)
823 _freea(buffer);
824 va_end(argp);
825}
826#endif
827
828

Callers 1

is_suitable_mountpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected