Alexandre Julliard : xcopy: Do not ignore errors caused by processing parameters.

Alexandre Julliard julliard at winehq.org
Thu Jun 10 12:22:49 CDT 2010


Module: wine
Branch: master
Commit: b7da23eb29a3f68b6acf0d0e884e54f546241bab
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b7da23eb29a3f68b6acf0d0e884e54f546241bab

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jun 10 11:24:06 2010 +0200

xcopy: Do not ignore errors caused by processing parameters.

---

 programs/xcopy/xcopy.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c
index f996144..4572374 100644
--- a/programs/xcopy/xcopy.c
+++ b/programs/xcopy/xcopy.c
@@ -261,11 +261,13 @@ int wmain (int argc, WCHAR *argvW[])
     WINE_TRACE("Destination : '%s'\n", wine_dbgstr_w(supplieddestination));
 
     /* Extract required information from source specification */
-    XCOPY_ProcessSourceParm(suppliedsource, sourcestem, sourcespec, flags);
+    rc = XCOPY_ProcessSourceParm(suppliedsource, sourcestem, sourcespec, flags);
+    if (rc != RC_OK) return rc;
 
     /* Extract required information from destination specification */
-    XCOPY_ProcessDestParm(supplieddestination, destinationstem,
+    rc = XCOPY_ProcessDestParm(supplieddestination, destinationstem,
                                destinationspec, sourcespec, flags);
+    if (rc != RC_OK) return rc;
 
     /* Trace out the resulting information */
     WINE_TRACE("Resolved parameters:\n");




More information about the wine-cvs mailing list