Re: ADVAPI32: Fix return value to indicate error when NULL string is passed in
16 May
2007
16 May
'07
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
6875
Age (days ago)
6875
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard