Skip to content

Commit cd6abf7

Browse files
committed
fix windows comp
1 parent 33dd582 commit cd6abf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/datadog/platform_util_windows.cpp

Lines changed: 2 additions & 1 deletion
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,6 +111,7 @@ std::string get_process_name() {
111111
#else
112112
std::string path = std::string(exe_name);
113113
#endif
114+
return path;
114115
}
115116

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

0 commit comments

Comments
 (0)