[2/44] richedit: Null pointer check missing on optional parameter
Dylan Smith
dylan.ah.smith at gmail.com
Tue Jun 17 20:18:19 CDT 2008
The function ME_FindRunInRow uses two parameters to return values by
reference, and treated these parameters as if they were optional except
for the start of the function which set *pbCaretAtEnd without checking
to see if was a NULL pointer.
I removed some redundant lines by using default values at the start of
the function.
---
dlls/riched20/caret.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-richedit-Null-pointer-check-missing-on-optional-para.diff
Type: text/x-diff
Size: 1138 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080617/67a5d082/attachment.diff
More information about the wine-patches
mailing list