Test for LoadString

Vitaly Lipatov lav at etersoft.ru
Tue Jan 30 13:47:33 CST 2007

Add tests for LoadString, completed on Windows.

As I see,
1. LoadStringA with buf = NULL segfaults in Windows, we have to produce ERR 
message instead
2. LoadStringA with buf = NULL, buflen = 0 returns -1
3. LoadStringW with some buf, buflen = 0 returns length of the resource string 
and puts some strange chars (F%O f.i.) in the buffer.
4. LoadStringW with buf = NULL, buflen!=0 returns 0
5. LoadStringA/W segfaults on negative buflen

- add tests for LoadStringA/W with zero/negative parameters
- add tests for LoadStringW

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: 4663 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070130/8fb3ef38/resource.c.bin

More information about the wine-patches mailing list