commit | 72f404421c24ea74295f011a90c40e75f448796d | [log] [tgz] |
---|---|---|
author | Ove Kaaven <ovek@transgaming.com> | Mon Oct 01 20:52:00 2001 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon Oct 01 20:52:00 2001 +0000 |
tree | 7a022c6cbb97497d9de2b29d23381e9777e0f64c | |
parent | c766ea7b5c4ada301def9654356fecf9775df6ec [diff] [blame] |
Make MoveFileEx fail with ERROR_INVALID_PARAMETER (better than crashing) when the source file operand is NULL.
diff --git a/files/file.c b/files/file.c index 9c8d115..0993492 100644 --- a/files/file.c +++ b/files/file.c
@@ -2006,6 +2006,11 @@ TRACE("(%s,%s,%04lx)\n", fn1, fn2, flag); + if (!fn1) { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + if (!DOSFS_GetFullName( fn1, TRUE, &full_name1 )) return FALSE; if (fn2) /* !fn2 means delete fn1 */