Bruno Jesus : compobj.dll16: Remove dead assignments in compobj.c ( Cppcheck).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 3 07:21:48 CST 2014


Module: wine
Branch: master
Commit: 00a6a1ac2fdbbf76c1d0458864f9c1cc14cc90c9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=00a6a1ac2fdbbf76c1d0458864f9c1cc14cc90c9

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Fri Oct 31 23:44:39 2014 -0200

compobj.dll16: Remove dead assignments in compobj.c (Cppcheck).

---

 dlls/compobj.dll16/compobj.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/compobj.dll16/compobj.c b/dlls/compobj.dll16/compobj.c
index ed36564..6261c13 100644
--- a/dlls/compobj.dll16/compobj.c
+++ b/dlls/compobj.dll16/compobj.c
@@ -668,18 +668,17 @@ HRESULT WINAPI CLSIDFromProgID16(LPCOLESTR16 progid, LPCLSID riid)
 {
 	char	*buf,buf2[80];
 	LONG	buf2len;
-	HRESULT	err;
 	HKEY	xhkey;
 
 	buf = HeapAlloc(GetProcessHeap(),0,strlen(progid)+8);
 	sprintf(buf,"%s\\CLSID",progid);
-	if ((err=RegOpenKeyA(HKEY_CLASSES_ROOT,buf,&xhkey))) {
+	if (RegOpenKeyA(HKEY_CLASSES_ROOT,buf,&xhkey)) {
 		HeapFree(GetProcessHeap(),0,buf);
                 return CO_E_CLASSSTRING;
 	}
 	HeapFree(GetProcessHeap(),0,buf);
 	buf2len = sizeof(buf2);
-	if ((err=RegQueryValueA(xhkey,NULL,buf2,&buf2len))) {
+	if (RegQueryValueA(xhkey,NULL,buf2,&buf2len)) {
 		RegCloseKey(xhkey);
                 return CO_E_CLASSSTRING;
 	}




More information about the wine-cvs mailing list