[PATCH] msvcp90: mark _invalid_parameter as noreturn (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Jan 4 11:25:35 CST 2014
1147947 Dereference after null check
after not seeing that _invalid_parameter will not return,
so just mark the function as such, perhaps coverity then notices it.
Ciao, Marcus
---
dlls/msvcp90/msvcp90.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcp90/msvcp90.h b/dlls/msvcp90/msvcp90.h
index b04faab..2ac87a5 100644
--- a/dlls/msvcp90/msvcp90.h
+++ b/dlls/msvcp90/msvcp90.h
@@ -38,7 +38,7 @@ typedef SSIZE_T streamsize;
#endif
void __cdecl _invalid_parameter(const wchar_t*, const wchar_t*,
- const wchar_t*, unsigned int, uintptr_t);
+ const wchar_t*, unsigned int, uintptr_t) DECLSPEC_NORETURN;
BOOL __cdecl __uncaught_exception(void);
extern void* (__cdecl *MSVCRT_operator_new)(MSVCP_size_t);
--
1.8.4
More information about the wine-patches
mailing list