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: ...@@ -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: ...@@ -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);
......
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