Merge pull request #2442 from LinusU/platform-osx-fixes

small fixes for platform/osx.c
This commit is contained in:
Duncan 2015-12-07 12:49:23 +00:00
commit 2e9945a748
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#if defined(__APPLE__) && defined(__MACH__)
#include "platform.h"
#include "../util/util.h"
#include <mach-o/dyld.h>
@ -32,7 +33,7 @@ bool platform_check_steam_overlay_attached() {
void platform_get_exe_path(utf8 *outPath)
{
char exePath[MAX_PATH];
int size = MAX_PATH;
uint32_t size = MAX_PATH;
int result = _NSGetExecutablePath(exePath, &size);
if (result != 0) {
log_fatal("failed to get path");