Commit 4a766619 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Pass characters to get_file_name() helper, not bytes.

parent ef735703
......@@ -1837,7 +1837,7 @@ BOOL WINAPI CreateProcessW( LPCWSTR app_name, LPWSTR cmd_line, LPSECURITY_ATTRIB
TRACE("app %s cmdline %s\n", debugstr_w(app_name), debugstr_w(cmd_line) );
if (!(tidy_cmdline = get_file_name( app_name, cmd_line, name, sizeof(name), &hFile )))
if (!(tidy_cmdline = get_file_name( app_name, cmd_line, name, sizeof(name)/sizeof(WCHAR), &hFile )))
return FALSE;
if (hFile == INVALID_HANDLE_VALUE) goto done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment