Re: programs: Add winemsibuilder.
1 Feb
2011
1 Feb
'11
12:38 p.m.
While skimming through the new patches, I found:
+WCHAR *encode_stream( const WCHAR *in ) +{ + DWORD c, next, count; + WCHAR *out, *p; + + count = strlenW( in ); + if (count > MAX_STREAM_NAME) + return NULL; + + count += 2; + out = HeapAlloc( GetProcessHeap(), 0, count * sizeof(WCHAR) ); + p = out;
You aren't checking for out-of-memory condition here. As you seem to cover all the other possible errors, I thought to let you know HTH, Joris
5429
Age (days ago)
5429
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joris Huizer