Commit f9c8afd3 authored by Alexandre Julliard's avatar Alexandre Julliard

setupapi: Specify the correct binary file name when registering an executable.

parent f5956f1a
......@@ -549,7 +549,7 @@ static BOOL do_register_dll( struct register_dll_info *info, const WCHAR *path,
memset( &startup, 0, sizeof(startup) );
startup.cb = sizeof(startup);
TRACE( "executing %s\n", debugstr_w(cmd_line) );
res = CreateProcessW( NULL, cmd_line, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &process_info );
res = CreateProcessW( path, cmd_line, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &process_info );
HeapFree( GetProcessHeap(), 0, cmd_line );
if (!res)
{
......
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