mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
Fix global variable name hidden by local variables in glib/gwin32-private.c
This commit is contained in:
parent
8e37f9c48a
commit
de8ab33cb5
@ -23,7 +23,7 @@
|
||||
* than `e` or `p`.
|
||||
*/
|
||||
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,
|
||||
const wchar_t *cmdline,
|
||||
DWORD pid,
|
||||
@ -51,26 +51,26 @@ _g_win32_subst_pid_and_event_w (wchar_t *debugger,
|
||||
while (cmdline[i] != 0 && dbg_i < debugger_size)
|
||||
{
|
||||
if (cmdline[i] != L'%')
|
||||
debugger[dbg_i++] = cmdline[i++];
|
||||
local_debugger[dbg_i++] = cmdline[i++];
|
||||
else if (cmdline[i + 1] == L'p')
|
||||
{
|
||||
gsize j = 0;
|
||||
while (j < pid_str_len && dbg_i < debugger_size)
|
||||
debugger[dbg_i++] = pid_str[j++];
|
||||
local_debugger[dbg_i++] = pid_str[j++];
|
||||
i += 2;
|
||||
}
|
||||
else if (cmdline[i + 1] == L'e')
|
||||
{
|
||||
gsize j = 0;
|
||||
while (j < event_str_len && dbg_i < debugger_size)
|
||||
debugger[dbg_i++] = event_str[j++];
|
||||
local_debugger[dbg_i++] = event_str[j++];
|
||||
i += 2;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
if (dbg_i < debugger_size)
|
||||
debugger[dbg_i] = 0;
|
||||
local_debugger[dbg_i] = 0;
|
||||
else
|
||||
return FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user