Skip to content

Commit 6553675

Browse files
committed
fix: windows test
1 parent 5a04368 commit 6553675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datadog/platform_util_windows.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ std::tuple<std::string, std::string> get_windows_info() {
2121
// application manifest, which is the lowest version supported by the
2222
// application. Use `RtlGetVersion` to obtain the accurate OS version
2323
// regardless of the manifest.
24-
using RtlGetVersion = auto(*)(LPOSVERSIONINFOEXW)->NTSTATUS;
24+
using RtlGetVersion = auto (*)(LPOSVERSIONINFOEXW)->NTSTATUS;
2525

2626
RtlGetVersion func =
2727
(RtlGetVersion)GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion");
@@ -111,7 +111,7 @@ std::string get_process_name() {
111111
#else
112112
std::string path = std::string(exe_name);
113113
#endif
114-
return path;
114+
return path.substr(path.find_last_of("/\\") + 1);
115115
}
116116

117117
int at_fork_in_child(void (*on_fork)()) {

0 commit comments

Comments
 (0)