Commit b7923b42 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

cmd: Fix 'copy foo bar/' which gave access denied errors.

parent bad34343
......@@ -126,6 +126,8 @@ char string[8], outpath[MAX_PATH], inpath[MAX_PATH], *infile;
}
GetFullPathName (param2, sizeof(outpath), outpath, NULL);
if (outpath[strlen(outpath) - 1] == '\\')
outpath[strlen(outpath) - 1] = '\0';
hff = FindFirstFile (outpath, &fd);
if (hff != INVALID_HANDLE_VALUE) {
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment