c_copy: return error code on windows if there is an error

This fixes a compiler warning about not returning a value
This commit is contained in:
Olivier Goffart 2012-11-07 17:03:01 +01:00
parent e2a8e9dce2
commit a4db29c277

View file

@ -80,9 +80,8 @@ int c_copy(const char* src, const char *dst, mode_t mode) {
if( rc < 0 ) { if( rc < 0 ) {
errno = GetLastError(); errno = GetLastError();
} }
return rc;
} }
return rc;
#else #else
/* Win32 does not come here. */ /* Win32 does not come here. */