diff options
author | Jason Perkins <starkos@industriousone.com> | 2013-05-20 19:04:21 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2013-05-20 19:04:21 +0400 |
commit | 2a5dae5db1ca37dbe2fd407dc28f6a41f5b40f23 (patch) | |
tree | 9ef939b4b0fe98c519c05628467cb33bb58e7343 | |
parent | bb679254e1c25e93611d0a81b49353338de987c4 (diff) |
Fix error result handling in os.rmdir()
-rw-r--r-- | src/host/os_rmdir.c | 4 |
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) |