Author: janderwald Date: Tue Sep 22 22:09:11 2009 New Revision: 43116
URL: http://svn.reactos.org/svn/reactos?rev=43116&view=rev Log: - Fix memory leak - Fix displaying of random characters if there is no device name
Modified: trunk/reactos/dll/win32/netshell/shfldr_netconnect.c
Modified: trunk/reactos/dll/win32/netshell/shfldr_netconnect.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/shfldr_n... ============================================================================== --- trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netshell/shfldr_netconnect.c [iso-8859-1] Tue Sep 22 22:09:11 2009 @@ -644,6 +644,11 @@ psd->str.uType = STRRET_WSTR; hr = SHStrDupW(buffer, &psd->str.u.pOleStr); } + else + { + psd->str.u.cStr[0] = '\0'; + psd->str.uType = STRRET_CSTR; + } break; case COLUMN_PHONE: case COLUMN_OWNER: @@ -651,9 +656,8 @@ psd->str.uType = STRRET_CSTR; break; } -#if 0 + NcFreeNetconProperties(pProperties); -#endif return hr; }