Change LoadString according to the test

Vitaly Lipatov lav at etersoft.ru
Tue Jan 30 14:24:09 CST 2007


As I see with
$ find -type f -name "*.c" | xargs grep LoadString | grep NULL
run with buffer = NULL is used in Wine only here:
./dlls/hhctrl.ocx/help.c:    iSize = LoadStringW(hhctrl_hinstance, dwID, NULL, 0);
and needs be rewritten for compatibity (see my next patch).

Changelog:
- change LoadString according to the test (return 0 if buffer = NULL)

-- 
Vitaly Lipatov, ALT Linux Team
Russia, Saint-Petersburg, www.etersoft.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resource.c.patch
Type: text/x-diff
Size: 1638 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070130/45385251/resource.c.bin


More information about the wine-patches mailing list