mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[WINESYNC] setupapi: Avoid shadowing a parameter.
wine commit id a326c9ee67d5a66b9634ae8e0850a99ba5fec26c by Austin English <austinenglish@gmail.com>
This commit is contained in:
parent
c0f05cc264
commit
09e9a8c139
2 changed files with 7 additions and 7 deletions
|
@ -606,7 +606,7 @@ static BOOL do_register_dll( const struct register_dll_info *info, const WCHAR *
|
|||
{
|
||||
/* file is an executable, not a dll */
|
||||
STARTUPINFOW startup;
|
||||
PROCESS_INFORMATION info;
|
||||
PROCESS_INFORMATION process_info;
|
||||
WCHAR *cmd_line;
|
||||
BOOL res;
|
||||
static const WCHAR format[] = {'"','%','s','"',' ','%','s',0};
|
||||
|
@ -620,7 +620,7 @@ static BOOL do_register_dll( const struct register_dll_info *info, const WCHAR *
|
|||
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, &info );
|
||||
res = CreateProcessW( NULL, cmd_line, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &process_info );
|
||||
HeapFree( GetProcessHeap(), 0, cmd_line );
|
||||
if (!res)
|
||||
{
|
||||
|
@ -628,16 +628,16 @@ static BOOL do_register_dll( const struct register_dll_info *info, const WCHAR *
|
|||
status.Win32Error = GetLastError();
|
||||
goto done;
|
||||
}
|
||||
CloseHandle( info.hThread );
|
||||
CloseHandle( process_info.hThread );
|
||||
|
||||
if (WaitForSingleObject( info.hProcess, timeout*1000 ) == WAIT_TIMEOUT)
|
||||
if (WaitForSingleObject( process_info.hProcess, timeout*1000 ) == WAIT_TIMEOUT)
|
||||
{
|
||||
/* timed out, kill the process */
|
||||
TerminateProcess( info.hProcess, 1 );
|
||||
TerminateProcess( process_info.hProcess, 1 );
|
||||
status.FailureCode = SPREG_TIMEOUT;
|
||||
status.Win32Error = ERROR_TIMEOUT;
|
||||
}
|
||||
CloseHandle( info.hProcess );
|
||||
CloseHandle( process_info.hProcess );
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ files:
|
|||
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
|
||||
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
|
||||
tags:
|
||||
wine: c66d27c55588b0ab3406ce4729348beec3aab536
|
||||
wine: a326c9ee67d5a66b9634ae8e0850a99ba5fec26c
|
||||
|
|
Loading…
Reference in a new issue