Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: OpenXRay/xray-16
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f9dca4fa0057efdc2321f40faad27676e71916e2
Choose a base ref
..
head repository: OpenXRay/xray-16
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 71d0c80fd3a94c5a75cf4abc97c45f2b25a110a3
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/xrCore/xrCore.cpp
6 changes: 3 additions & 3 deletions src/xrCore/xrCore.cpp
Original file line number Diff line number Diff line change
@@ -256,10 +256,10 @@ void xrCore::Initialize(pcstr _ApplicationName, pcstr commandLine, LogCallback c
else
Msg("! Failed to get user name");

if (gethostname(CompName, sizeof(CompName)) != 0)
Msg("! Failed to get computer name");
else
if (gethostname(CompName, sizeof(CompName)) == 0)
CompName[sizeof(CompName) - 1] = '\0';
else
Msg("! Failed to get computer name");
#else
# error Select or add implementation for your platform
#endif