Mercurial > pidgin
diff libpurple/win32/libc_interface.c @ 18981:d68bf68ad499
propagate from branch 'im.pidgin.pidgin' (head efa0e31922a07bb598a6fc8951462e1fa96a886e)
to branch 'im.pidgin.soc.2007.certmgr' (head 24642188259ac4e48c6a2139c002ae9619751fc8)
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Mon, 02 Jul 2007 17:18:49 +0000 |
parents | 959091d9c345 |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/libpurple/win32/libc_interface.c Fri Jun 29 21:42:39 2007 +0000 +++ b/libpurple/win32/libc_interface.c Mon Jul 02 17:18:49 2007 +0000 @@ -413,8 +413,8 @@ /* newname exists */ if(g_stat(newname, &newstat) == 0) { /* oldname is a dir */ - if(_S_ISDIR(oldstat.st_mode)) { - if(!_S_ISDIR(newstat.st_mode)) { + if(S_ISDIR(oldstat.st_mode)) { + if(!S_ISDIR(newstat.st_mode)) { return g_rename(oldname, newname); } /* newname is a dir */ @@ -430,7 +430,7 @@ /* oldname is not a dir */ else { /* newname is a dir */ - if(_S_ISDIR(newstat.st_mode)) { + if(S_ISDIR(newstat.st_mode)) { errno = EISDIR; return -1; }