1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-07 01:54:19 +01:00

Fix linux build.

This commit is contained in:
Nicholas Hastings 2013-10-24 13:30:44 -04:00
parent fdcbe71317
commit 2bd02e10e7

View File

@ -235,9 +235,8 @@ mm_GetGameName(char *buffer, size_t size)
#elif defined __linux__
FILE *pFile = fopen("/proc/self/cmdline", "rb");
if (!pFile)
return false;
if (pFile)
{
char *arg = NULL;
size_t argsize = 0;
bool bNextIsGame = false;
@ -259,7 +258,7 @@ mm_GetGameName(char *buffer, size_t size)
free(arg);
fclose(pFile);
}
#else
#error unsupported platform
#endif