mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
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:
parent
e2a8e9dce2
commit
a4db29c277
1 changed files with 1 additions and 2 deletions
|
@ -80,9 +80,8 @@ int c_copy(const char* src, const char *dst, mode_t mode) {
|
|||
if( rc < 0 ) {
|
||||
errno = GetLastError();
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
return rc;
|
||||
#else
|
||||
|
||||
/* Win32 does not come here. */
|
||||
|
|
Loading…
Reference in a new issue