[PATCH 1/2] shlwapi: Implement SHGetIniStringW

Vitaliy Margolen wine-devel at kievinfo.com
Fri Jul 23 08:57:03 CDT 2010


On 07/21/2010 10:23 AM, Andrew Eikum wrote:

Please more-less follow the format of the file and don't add yet one more.
> +    if(outLen == 0)
> +        return 0;
Need space between "if" and "(".

> +    if(!buf){
Curly bracket goes on to separate line.

> +    buf = HeapAlloc(GetProcessHeap(), 0, outLen * sizeof(WCHAR));
> +    ret = GetPrivateProfileStringW(appName, keyName, NULL, buf, outLen, filename);
> +        strcpyW(out, buf);
> +    HeapFree(GetProcessHeap(), 0, buf);
Why do you need extra buffer here? Use passed buffer instead.

Vitaliy.



More information about the wine-devel mailing list