shell32: Memory allocated by CommandLineToArgvW should be that got from LocalAlloc/LocalReAlloc, not from GlobalAlloc.

Robert Shearman rob at
Thu Feb 14 08:38:58 CST 2008

Use LMEM_FIXED instead of 0 in calls to LocalAlloc to emphasise that 
we're getting a direct pointer, not a handle to memory.

Remove hargv as it is confusing and unnecessary.
  dlls/shell32/shell32_main.c |   12 ++++--------
  1 files changed, 4 insertions(+), 8 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c434e54800b49ef5fc39dc405ec1c74409df5820.diff
Type: text/x-patch
Size: 1761 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list