netapi32: Correctly reallocate buffer in NetWkstaUserGetInfo.

Thomas Faber thomas.faber at
Mon Aug 31 15:06:56 CDT 2015

- If NetApiBufferReallocate failed, the old buffer is not freed so we
  need to do that if we're gonna return failure.
- If NetApiBufferReallocate succeeded, the buffer can have moved, so
  the wkui0_username member needs to be updated. This happens e.g.
  when running with Debug Page Heap.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-netapi32-Correctly-reallocate-buffer-in-NetWkstaUser.patch
Type: text/x-diff
Size: 989 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list