mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:20:56 +00:00
setupapi: Handle the SP_COPY_NOOVERWRITE flag.
This commit is contained in:
parent
b5ee7aee23
commit
3e5f62b2d8
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue