15 Jan
2026
15 Jan
'26
3:24 a.m.
eric pouech (@epo) commented about dlls/kernelbase/process.c:
if (cmdline[0] == '"' && (p = wcschr( cmdline + 1, '"' ))) { - int len = p - cmdline - 1; + int len; + /* trim spaces in quotes */ + const WCHAR* start = cmdline + 1; + const WCHAR* end = p - 1; + while (*start == ' ') start++; + while (*end == ' ') end--;
what if cmdline contains only spaces between the quotes? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9882#note_127032