[1/2] kernel32: K32EnumProcessModules: Fail gracefully with NULL pointer and size > 0

Olivier F. R. Dierick o.dierick at piezo-forte.be
Wed Jul 1 21:23:22 CDT 2015


Supersedes patch with submission ID 112500.
Addresses bug 38841.
Former patch introduce a regression in dlls/psapi/tests.
K32EnumProcessModules must fail when lphModule is NULL *and* cb is
greater than 0. Also made the code more compact.

---
 dlls/kernel32/module.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
        Olivier F. R. Dierick
        o.dierick at piezo-forte.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-K32EnumProcessModules-Fail-gracefully-with-NULL-poin.patch.txt
Type: application/mbox
Size: 788 bytes
Desc: 
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150702/5d715d5a/attachment.mbox>


More information about the wine-patches mailing list