Author: gschneider
Date: Sat May 22 17:16:14 2010
New Revision: 47305
URL:
http://svn.reactos.org/svn/reactos?rev=47305&view=rev
Log:
[SHELL32]
- Duplicate the string instead of freeing the memory twice at two different positions
- Fixes a heap warning when stating cmd from the desktop
See issue #4924 for more details.
Modified:
trunk/reactos/dll/win32/shell32/shelllink.c
Modified: trunk/reactos/dll/win32/shell32/shelllink.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shelllin…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shelllink.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shelllink.c [iso-8859-1] Sat May 22 17:16:14 2010
@@ -2828,7 +2828,7 @@
}
else if (This->sArgs != NULL)
{
- args = This->sArgs;
+ args = strdupW( This->sArgs );
}
memset( &sei, 0, sizeof sei );