Re: ADVAPI32: Fix return value to indicate error when NULL string is passed in
May 16, 2007
7:29 a.m.
Rolf Kalbermatter <r.kalbermatter(a)hccnet.nl> writes:
- if (ret) + if (ret || (!lpDisplayName && size)) { if (lpDisplayName && *lpcchBuffer) *lpDisplayName = 0;
- if (ret == ERROR_MORE_DATA) + if ((!ret && !lpDisplayName) || ret == ERROR_MORE_DATA)
These complex conditions make it really hard to figure out what the code is doing. You should probably handle the NULL pointer as a separate case. -- Alexandre Julliard julliard(a)winehq.org
6890
Age (days ago)
6890
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard