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:
parent
86f51040e8
commit
161a0c259a
|
@ -1073,6 +1073,7 @@ done:
|
||||||
if (buffer_size >= size)
|
if (buffer_size >= size)
|
||||||
{
|
{
|
||||||
lstrcpyW( dest, target );
|
lstrcpyW( dest, target );
|
||||||
|
if (filepart) *filepart = wcsrchr( dest, '\\' ) + 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1081,7 +1082,6 @@ done:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filepart) *filepart = wcsrchr( target, '\\' ) + 1;
|
|
||||||
if (required_size) *required_size = size;
|
if (required_size) *required_size = size;
|
||||||
if (ret) SetLastError(ERROR_SUCCESS);
|
if (ret) SetLastError(ERROR_SUCCESS);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue