James Hawkins : setupapi: Handle the SP_COPY_NOOVERWRITE flag.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 28 06:42:08 CDT 2007
Module: wine
Branch: master
Commit: 3e5f62b2d8d7353f890ca6e4fb27809c9f7dae8f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3e5f62b2d8d7353f890ca6e4fb27809c9f7dae8f
Author: James Hawkins <truiken at gmail.com>
Date: Wed Mar 28 01:52:53 2007 -0500
setupapi: Handle the SP_COPY_NOOVERWRITE flag.
---
dlls/setupapi/misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c
index f00cd2d..b1845b7 100644
--- a/dlls/setupapi/misc.c
+++ b/dlls/setupapi/misc.c
@@ -956,7 +956,7 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
if (buffer_size >= size)
{
/* FIXME: honour style flags */
- if ((ret = CopyFileW( source, target, FALSE )))
+ if ((ret = CopyFileW( source, target, (style & SP_COPY_NOOVERWRITE) != 0 )))
{
if (style & SP_COPY_DELETESOURCE) DeleteFileW( source );
strcpyW( dest, target );
More information about the wine-cvs
mailing list