setupapi: Fix setting filepart in SetupCopyOEMInfW().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-11-07 23:37:52 -06:00 committed by Alexandre Julliard
parent 86f51040e8
commit 161a0c259a
1 changed files with 1 additions and 1 deletions

View File

@ -1073,6 +1073,7 @@ done:
if (buffer_size >= size)
{
lstrcpyW( dest, target );
if (filepart) *filepart = wcsrchr( dest, '\\' ) + 1;
}
else
{
@ -1081,7 +1082,6 @@ done:
}
}
if (filepart) *filepart = wcsrchr( target, '\\' ) + 1;
if (required_size) *required_size = size;
if (ret) SetLastError(ERROR_SUCCESS);