Просмотр исходного кода

Merge pull request #56 from mendsley/return_values

Add return values to setenv/getcwd
Branimir Karadžić 10 лет назад
Родитель
Сommit
14a49080c7
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      include/bx/os.h

+ 2 - 0
include/bx/os.h

@@ -164,6 +164,7 @@ namespace bx
 	{
 	{
 #if BX_PLATFORM_WINRT
 #if BX_PLATFORM_WINRT
 		BX_UNUSED(_path);
 		BX_UNUSED(_path);
+		return -1;
 #elif BX_COMPILER_MSVC_COMPATIBLE
 #elif BX_COMPILER_MSVC_COMPATIBLE
 		return ::_chdir(_path);
 		return ::_chdir(_path);
 #else
 #else
@@ -175,6 +176,7 @@ namespace bx
 	{
 	{
 #if BX_PLATFORM_WINRT
 #if BX_PLATFORM_WINRT
 		BX_UNUSED(_buffer, _size);
 		BX_UNUSED(_buffer, _size);
+		return NULL;
 #elif BX_COMPILER_MSVC_COMPATIBLE
 #elif BX_COMPILER_MSVC_COMPATIBLE
 		return ::_getcwd(_buffer, (int)_size);
 		return ::_getcwd(_buffer, (int)_size);
 #else
 #else