You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "William A. Rowe, Jr." <wr...@covalent.net> on 2002/02/12 02:35:14 UTC
Re: cvs commit: apr/file_io/win32 open.c
I'm near certain we want to fall over gracefully here, correct???
> wrowe 02/02/11 17:32:55
>
> Modified: file_io/win32 open.c
> Log:
> stdfoo handles are unsupported on WinCE. Submitted by Mladen Turk
> <mt...@mappingsoft.com>.
>
> I believe the patch for CE is wrong is one respect, IIRC we should fall
> over from MoveFile to CopyFile if the file device varied. Confirmation?
>
> Revision Changes Path
> 1.94 +20 -0 apr/file_io/win32/open.c
>
> @@ -466,8 +470,12 @@
> / sizeof(apr_wchar_t), topath)) {
> return rv;
> }
> +#ifndef _WIN32_WCE
> if (MoveFileExW(wfrompath, wtopath, MOVEFILE_REPLACE_EXISTING |
> MOVEFILE_COPY_ALLOWED))
> +#else
> + if (MoveFileW(wfrompath, wtopath))
> +#endif
> return APR_SUCCESS;
> #else
> if (MoveFileEx(frompath, topath, MOVEFILE_REPLACE_EXISTING |