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