Fix global variable name hidden by local variables in glib/gwin32-private.c

This commit is contained in:
Loic Le Page 2022-01-19 18:19:41 +01:00 committed by Loïc Le Page
parent 8e37f9c48a
commit de8ab33cb5

View File

@ -23,7 +23,7 @@
* than `e` or `p`. * than `e` or `p`.
*/ */
static gboolean static gboolean
_g_win32_subst_pid_and_event_w (wchar_t *debugger, _g_win32_subst_pid_and_event_w (wchar_t *local_debugger,
gsize debugger_size, gsize debugger_size,
const wchar_t *cmdline, const wchar_t *cmdline,
DWORD pid, DWORD pid,
@ -51,26 +51,26 @@ _g_win32_subst_pid_and_event_w (wchar_t *debugger,
while (cmdline[i] != 0 && dbg_i < debugger_size) while (cmdline[i] != 0 && dbg_i < debugger_size)
{ {
if (cmdline[i] != L'%') if (cmdline[i] != L'%')
debugger[dbg_i++] = cmdline[i++]; local_debugger[dbg_i++] = cmdline[i++];
else if (cmdline[i + 1] == L'p') else if (cmdline[i + 1] == L'p')
{ {
gsize j = 0; gsize j = 0;
while (j < pid_str_len && dbg_i < debugger_size) while (j < pid_str_len && dbg_i < debugger_size)
debugger[dbg_i++] = pid_str[j++]; local_debugger[dbg_i++] = pid_str[j++];
i += 2; i += 2;
} }
else if (cmdline[i + 1] == L'e') else if (cmdline[i + 1] == L'e')
{ {
gsize j = 0; gsize j = 0;
while (j < event_str_len && dbg_i < debugger_size) while (j < event_str_len && dbg_i < debugger_size)
debugger[dbg_i++] = event_str[j++]; local_debugger[dbg_i++] = event_str[j++];
i += 2; i += 2;
} }
else else
return FALSE; return FALSE;
} }
if (dbg_i < debugger_size) if (dbg_i < debugger_size)
debugger[dbg_i] = 0; local_debugger[dbg_i] = 0;
else else
return FALSE; return FALSE;