From 71af3e15822a3cff278207ee294764c0853a3193 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 12 Nov 2008 11:10:00 +0100 Subject: [PATCH] regedit: Remove unneeded variable initializations. --- programs/regedit/regproc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c index c3825bd36a..fd99bd3ccd 100644 --- a/programs/regedit/regproc.c +++ b/programs/regedit/regproc.c @@ -73,7 +73,7 @@ WCHAR* GetWideString(const char* strA) { if(strA) { - WCHAR* strW = NULL; + WCHAR* strW; int len = MultiByteToWideChar(CP_ACP, 0, strA, -1, NULL, 0); strW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); @@ -92,7 +92,7 @@ WCHAR* GetWideStringN(const char* strA, int chars, DWORD *len) { if(strA) { - WCHAR* strW = NULL; + WCHAR* strW; *len = MultiByteToWideChar(CP_ACP, 0, strA, chars, NULL, 0); strW = HeapAlloc(GetProcessHeap(), 0, *len * sizeof(WCHAR)); @@ -112,7 +112,7 @@ char* GetMultiByteString(const WCHAR* strW) { if(strW) { - char* strA = NULL; + char* strA; int len = WideCharToMultiByte(CP_ACP, 0, strW, -1, NULL, 0, NULL, NULL); strA = HeapAlloc(GetProcessHeap(), 0, len); @@ -131,7 +131,7 @@ char* GetMultiByteStringN(const WCHAR* strW, int chars, DWORD* len) { if(strW) { - char* strA = NULL; + char* strA; *len = WideCharToMultiByte(CP_ACP, 0, strW, chars, NULL, 0, NULL, NULL); strA = HeapAlloc(GetProcessHeap(), 0, *len); -- 2.32.0.93.g670b81a890