mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
dll: expose FspNtStatusFromWin32 and FspDebugLog
This commit is contained in:
parent
1312754016
commit
5a90bf52ed
@ -19,6 +19,7 @@
|
|||||||
#define FSP_API __declspec(dllimport)
|
#define FSP_API __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NTSTATUS FspNtStatusFromWin32(DWORD Error);
|
FSP_API NTSTATUS FspNtStatusFromWin32(DWORD Error);
|
||||||
|
FSP_API VOID FspDebugLog(const char *format, ...);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
#include <dll/library.h>
|
#include <dll/library.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#if !defined(NDEBUG)
|
FSP_API VOID FspDebugLog(const char *format, ...)
|
||||||
VOID FspDebugLog(const char *format, ...)
|
|
||||||
{
|
{
|
||||||
char buf[512];
|
char buf[512];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
@ -17,4 +16,3 @@ VOID FspDebugLog(const char *format, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
OutputDebugStringA(buf);
|
OutputDebugStringA(buf);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
@ -22,9 +22,4 @@
|
|||||||
#define DEBUGLOG(fmt, ...) ((void)0)
|
#define DEBUGLOG(fmt, ...) ((void)0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* debug */
|
|
||||||
#if !defined(NDEBUG)
|
|
||||||
VOID FspDebugLog(const char *format, ...);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <dll/library.h>
|
#include <dll/library.h>
|
||||||
|
|
||||||
NTSTATUS FspNtStatusFromWin32(DWORD Error)
|
FSP_API NTSTATUS FspNtStatusFromWin32(DWORD Error)
|
||||||
{
|
{
|
||||||
switch (Error)
|
switch (Error)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user