Change LoadString according to the test

Vitaly Lipatov lav at
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).

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

Vitaly Lipatov, ALT Linux Team
Russia, Saint-Petersburg,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resource.c.patch
Type: text/x-diff
Size: 1638 bytes
Desc: not available
Url :

More information about the wine-patches mailing list