fix bug

rmdir() On success, zero is returned. On error, -1 is returned.
RemoveDirectory() on error,zero is returned.