about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-06-02 17:03:02 +0800
committerGitHub <noreply@github.com>2025-06-02 11:03:02 +0200
commite4edb65c2b3e6531b23f626f4880617d13fbbb55 (patch)
tree9a2d008e35f2b4940dafa0ed1257687f868c5bf4 /src
parentb49bcbf68b3bae445a95e20dedebc6efd85e55bf (diff)
downloadbox64-e4edb65c2b3e6531b23f626f4880617d13fbbb55.tar.gz
box64-e4edb65c2b3e6531b23f626f4880617d13fbbb55.zip
[WOW64] The name is WowBox64 (#2699)
Diffstat (limited to 'src')
-rw-r--r--src/build_info.h10
-rw-r--r--src/os/my_cpuid_wine.c4
2 files changed, 10 insertions, 4 deletions
diff --git a/src/build_info.h b/src/build_info.h
index 90272703..f1b006b0 100644
--- a/src/build_info.h
+++ b/src/build_info.h
@@ -26,8 +26,14 @@ void PrintBox64Version(int prefix);
 #define BOX64_BUILD_INFO_STR_HELPER(x) #x
 #define BOX64_BUILD_INFO_STR(x) BOX64_BUILD_INFO_STR_HELPER(x)
 
+#ifdef _WIN32
+#define BOX64_STR "WowBox64"
+#else
+#define BOX64_STR "Box64"
+#endif
+
 #define BOX64_BUILD_INFO_STRING \
-    "Box64" ARCH_STR            \
-    " v" BOX64_BUILD_INFO_STR(BOX64_MAJOR) "." BOX64_BUILD_INFO_STR(BOX64_MINOR) "." BOX64_BUILD_INFO_STR(BOX64_REVISION) " " GITREV
+    BOX64_STR ARCH_STR          \
+        " v" BOX64_BUILD_INFO_STR(BOX64_MAJOR) "." BOX64_BUILD_INFO_STR(BOX64_MINOR) "." BOX64_BUILD_INFO_STR(BOX64_REVISION) " " GITREV
 
 #endif //__BUILD_INFO_H__
diff --git a/src/os/my_cpuid_wine.c b/src/os/my_cpuid_wine.c
index 5a0567ec..85e8e8a8 100644
--- a/src/os/my_cpuid_wine.c
+++ b/src/os/my_cpuid_wine.c
@@ -2,6 +2,7 @@
 
 #include "my_cpuid.h"
 #include "debug.h"
+#include "build_info.h"
 
 NTSYSAPI ULONG WINAPI NtGetTickCount(VOID);
 NTSYSAPI ULONG NTAPI RtlRandom(ULONG *seed);
@@ -24,8 +25,7 @@ int getNCpu()
 
 const char* getBoxCpuName()
 {
-    static char branding[] = "libwowbox64.dll";
-    return branding;
+    return BOX64_STR;
 }
 
 uint32_t helper_getcpu(x64emu_t* emu) {