diff --git a/cfg/windows.cfg b/cfg/windows.cfg
index 53dc335e4..47a428c82 100644
--- a/cfg/windows.cfg
+++ b/cfg/windows.cfg
@@ -4825,7 +4825,7 @@ HFONT CreateFont(
-
+
diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp
index 55eb21ecd..7c90898fd 100644
--- a/test/cfg/windows.cpp
+++ b/test/cfg/windows.cpp
@@ -8,14 +8,23 @@
//
#include
-#include
+#include
#include
-#include
-#include
+#include
+#include
#include
#include
#include
#include
+#include
+
+/// https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamew
+std::string constVariable_GetModuleFileName(void) {
+ char path[42];
+ if (GetModuleFileNameA(NULL, path, sizeof(path))==0)
+ return std::string();
+ return std::string{path};
+}
int stringCompare_mbscmp(const unsigned char *string1, const unsigned char *string2)
{
@@ -1117,4 +1126,4 @@ void invalidPrintfArgType_StructMember(double d) { // #9672
BOOL MyEnableWindow(HWND hWnd, BOOL bEnable) {
return EnableWindow(hWnd, bEnable);
-}
\ No newline at end of file
+}