[WINESYNC] setupapi: Avoid shadowing a parameter.

wine commit id a326c9ee67d5a66b9634ae8e0850a99ba5fec26c by Austin English <austinenglish@gmail.com>
This commit is contained in:
winesync 2024-01-04 20:32:52 +01:00 committed by Hermès Bélusca-Maïto
parent c7d7d4ab32
commit 29456f347f
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 7 additions and 7 deletions

View file

@ -609,7 +609,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};
@ -623,7 +623,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)
{
@ -631,16 +631,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;
}
#endif // __WINESRC__

View file

@ -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