We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ffDebugNtStatus
1 parent cd8a0fc commit 7821552Copy full SHA for 7821552
3 files changed
src/common/debug.h
@@ -30,4 +30,5 @@ static inline const char* ffFindFileName(const char* file)
30
31
#if _WIN32
32
const char* ffDebugWin32Error(unsigned long errorCode);
33
+const char* ffDebugNtStatus(NTSTATUS status);
34
#endif
src/common/impl/debug_windows.c
@@ -26,3 +26,8 @@ const char* ffDebugWin32Error(DWORD errorCode)
26
27
return buffer;
28
}
29
+
+const char* ffDebugNtStatus(NTSTATUS status)
+{
+ return ffDebugWin32Error(RtlNtStatusToDosError(status));
+}
src/common/impl/init.c
@@ -55,8 +55,8 @@ void ffInitInstance(void)
55
setlocale(LC_TIME, "");
56
57
58
- initState(&instance.state);
59
defaultConfig();
+ initState(&instance.state);
60
61
62
static volatile bool ffDisableLinewrap = true;
0 commit comments