diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-20 15:55:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-20 15:55:44 +0200 |
commit | e5a0755bc2f8129cb854367740a02c859555c033 (patch) | |
tree | 2b48b7beb473448187a649ad619f17331bfdc804 /tools/source | |
parent | 91a6ea5d6f75846983ab53ef477aa063786ac3fe (diff) |
new does not return null
Change-Id: Iea00f7c6435c6ae3ccbb2f97ab4407df8b86c54b
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/fsys/wntmsc.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/source/fsys/wntmsc.cxx b/tools/source/fsys/wntmsc.cxx index 80934116f50c..28593b7ec734 100644 --- a/tools/source/fsys/wntmsc.cxx +++ b/tools/source/fsys/wntmsc.cxx @@ -510,10 +510,7 @@ HRESULT SHResolvePath( HWND hwndOwner, LPCTSTR pszPath, LPITEMIDLIST *ppidl ) // First make a copy of the path pszPathCopy = new TCHAR[lstrlen(pszPath) + 1]; - if ( pszPathCopy ) - lstrcpy( pszPathCopy, pszPath ); - else - return E_OUTOFMEMORY; + lstrcpy( pszPathCopy, pszPath ); // Determine the first token |