CommandLineToArgvW fix

eric pouech eric.pouech at wanadoo.fr
Mon Oct 8 14:00:12 CDT 2001


> wouldn't the (completly untested but) attached patch work better ?

> +    argv=HeapAlloc(GetProcessHeap(), 0, (argc+1)*sizeof(LPWSTR) + strlenW(lpCmdline) + 1);
hmm, it should of course be
> +    argv=HeapAlloc(GetProcessHeap(), 0, (argc+1)*sizeof(LPWSTR) + (strlenW(lpCmdline) + 1) * sizeof(WCHAR));

A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle




More information about the wine-devel mailing list