shlexec: buffer work

Alexandre Julliard julliard at winehq.org
Fri Nov 3 03:50:43 CST 2006


Aric Stewart <aric at codeweavers.com> writes:

> +    len = ExpandEnvironmentStringsW(sei_tmp.lpFile, NULL, 0);
> +    if (len>0)
> +	{
> +		LPWSTR buf;
> +		buf = HeapAlloc(GetProcessHeap(),0,(len+1)*sizeof(WCHAR));
> +
> +		ExpandEnvironmentStringsW(sei_tmp.lpFile, buf, len+1);
> +        HeapFree(GetProcessHeap(), 0, wszApplicationName);
> +		dwApplicationNameLen = len+1;
> +		wszApplicationName = buf;
> +
> +    	sei_tmp.lpFile = wszApplicationName;
> +	}

The indentation is all messed up, please fix your editor settings.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list