Francois Gouget : shell32: Remove an unneeded local variable
initialization .
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 5 07:44:48 CST 2007
Module: wine
Branch: master
Commit: fbfe9a72de562788e48e9883928b14ac5d1b40c8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fbfe9a72de562788e48e9883928b14ac5d1b40c8
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Jan 26 18:23:57 2007 +0100
shell32: Remove an unneeded local variable initialization.
---
dlls/shell32/shelllink.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index a27b957..8a3d69d 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -2483,12 +2483,12 @@ ShellLink_QueryContextMenu( IContextMenu
static LPWSTR
shelllink_get_msi_component_path( LPWSTR component )
{
- LPWSTR path = NULL;
+ LPWSTR path;
DWORD r, sz = 0;
r = CommandLineFromMsiDescriptor( component, NULL, &sz );
if (r != ERROR_SUCCESS)
- return path;
+ return NULL;
sz++;
path = HeapAlloc( GetProcessHeap(), 0, sz*sizeof(WCHAR) );
More information about the wine-cvs
mailing list