Commit 161a0c25 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

setupapi: Fix setting filepart in SetupCopyOEMInfW().

parent 86f51040
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment