diff options
Diffstat (limited to 'src/host/os_rmdir.c')
-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) |