Ver código fonte

Merge pull request #56 from mendsley/return_values

Add return values to setenv/getcwd
Branimir Karadžić 10 anos atrás
pai
commit
14a49080c7
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      include/bx/os.h

+ 2 - 0
include/bx/os.h

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