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)
|
if (buffer_size >= size)
|
||||||
{
|
{
|
||||||
/* FIXME: honour style flags */
|
/* 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 );
|
if (style & SP_COPY_DELETESOURCE) DeleteFileW( source );
|
||||||
strcpyW( dest, target );
|
strcpyW( dest, target );
|
||||||
|
|
Loading…
Reference in New Issue