From dark.shadow4 at web.de Sun Sep 16 08:48:39 2018 From: dark.shadow4 at web.de (Fabian Maurer) Date: Sun, 16 Sep 2018 15:48:39 +0200 Subject: [PATCH] scrrun: Add MoveFile(). In-Reply-To: <20180916130147.19829-1-nsivov@codeweavers.com> References: <20180916130147.19829-1-nsivov@codeweavers.com> Message-ID: <1801392.9NKejRn9qR@arch> > + TRACE("%p %s %s\n", iface, debugstr_w(src), debugstr_w(dest)); > + > + if (MoveFileW(src, dest)) > + return S_OK; > + > + error = GetLastError(); > + switch (error) > + { > + case ERROR_ALREADY_EXISTS: > + return CTL_E_FILEALREADYEXISTS; > + case ERROR_FILE_NOT_FOUND: > + return CTL_E_FILENOTFOUND; > + default: > + return HRESULT_FROM_WIN32(error); > + } That doesn't seem quite correct. As the docs I linked from https://bugs.winehq.org/show_bug.cgi?id=45839 state, this function also accepts wildcards. On my win7 machine that works, but MoveFileW can't handle this. Regards, Fabian Maurer -------------- next part -------------- An HTML attachment was scrubbed... URL: