comctl32: Remove a dead assignment in comctl32undoc.c (Cppcheck)

Bruno Jesus 00cpxxx at gmail.com
Thu Oct 30 20:41:01 CDT 2014


[dlls\comctl32\comctl32undoc.c:693]: (style) Variable 'err' is
assigned a value that is never used.
-------------- next part --------------
diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c
index f20857c..97bbf1a 100644
--- a/dlls/comctl32/comctl32undoc.c
+++ b/dlls/comctl32/comctl32undoc.c
@@ -690,8 +690,8 @@ static HANDLE create_mru_list(LPWINEMRULIST mp)
     /* get values from key 'MRUList' */
     if (newkey) {
 	datasize = (mp->extview.uMax + 1) * sizeof(WCHAR);
-	if((err=RegQueryValueExW( newkey, strMRUList, 0, &type,
-				  (LPBYTE)mp->realMRU, &datasize))) {
+	if (RegQueryValueExW( newkey, strMRUList, 0, &type,
+				  (LPBYTE)mp->realMRU, &datasize)) {
 	    /* not present - set size to 1 (will become 0 later) */
 	    datasize = 1;
 	    *mp->realMRU = 0;


More information about the wine-patches mailing list