[PATCH] riched20: In ME_ProtectPartialTableDeletion properly set out parameter (cppcheck)
Fabian Maurer
dark.shadow4 at web.de
Tue Oct 3 10:31:11 CDT 2017
Author probably meant to set the value instead of the pointer itself.
Found by cppcheck.
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
dlls/riched20/table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/riched20/table.c b/dlls/riched20/table.c
index b834bc7bc3..d2cab9a817 100644
--- a/dlls/riched20/table.c
+++ b/dlls/riched20/table.c
@@ -400,7 +400,7 @@ void ME_ProtectPartialTableDeletion(ME_TextEditor *editor, ME_Cursor *c, int *nC
}
}
if (*nChars < 0)
- nChars = 0;
+ *nChars = 0;
}
}
--
2.14.2
More information about the wine-patches
mailing list