Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2013-05-20 19:04:21 +0400
committerJason Perkins <starkos@industriousone.com>2013-05-20 19:04:21 +0400
commit2a5dae5db1ca37dbe2fd407dc28f6a41f5b40f23 (patch)
tree9ef939b4b0fe98c519c05628467cb33bb58e7343
parentbb679254e1c25e93611d0a81b49353338de987c4 (diff)
Fix error result handling in os.rmdir()
-rw-r--r--src/host/os_rmdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/os_rmdir.c b/src/host/os_rmdir.c
index 478dcae..f2ffeee 100644
--- a/src/host/os_rmdir.c
+++ b/src/host/os_rmdir.c
@@ -1,7 +1,7 @@
/**
* \file os_rmdir.c
* \brief Remove a subdirectory.
- * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
+ * \author Copyright (c) 2002-2013 Jason Perkins and the Premake project
*/
#include <stdlib.h>
@@ -16,7 +16,7 @@ int os_rmdir(lua_State* L)
#if PLATFORM_WINDOWS
z = RemoveDirectory(path);
#else
- z = rmdir(path);
+ z = (0 == rmdir(path));
#endif
if (!z)