setupapi: Handle the SP_COPY_NOOVERWRITE flag.

This commit is contained in:
James Hawkins 2007-03-28 01:52:53 -05:00 committed by Alexandre Julliard
parent b5ee7aee23
commit 3e5f62b2d8
1 changed files with 1 additions and 1 deletions

View File

@ -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 );