Added patch to fix incorrect assignment in assert statement in ntdll/threadpool.c.

This commit is contained in:
Sebastian Lackner 2015-07-11 15:34:39 +02:00
parent d1f4a25cbd
commit 0748a983e3
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 4ffe94b77e7f50263d8e3ae5f3466a757f9d9d4e Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Sat, 11 Jul 2015 15:28:27 +0200
Subject: ntdll: Fix incorrect assignment in assert statement (Coverity).
---
dlls/ntdll/threadpool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index a4e0619..23091f3 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -1598,7 +1598,7 @@ static NTSTATUS tp_waitqueue_lock( struct threadpool_object *wait )
struct waitqueue_bucket *bucket;
NTSTATUS status;
HANDLE thread;
- assert( wait->type = TP_OBJECT_TYPE_WAIT );
+ assert( wait->type == TP_OBJECT_TYPE_WAIT );
wait->u.wait.signaled = 0;
wait->u.wait.bucket = NULL;
--
2.4.5

View File

@ -151,6 +151,7 @@ patch_enable_all ()
enable_ntdll_APC_Start_Process="$1"
enable_ntdll_Activation_Context="$1"
enable_ntdll_CLI_Images="$1"
enable_ntdll_Coverity="$1"
enable_ntdll_DOS_Attributes="$1"
enable_ntdll_DeviceType_Systemroot="$1"
enable_ntdll_DllRedirects="$1"
@ -527,6 +528,9 @@ patch_enable ()
ntdll-CLI_Images)
enable_ntdll_CLI_Images="$2"
;;
ntdll-Coverity)
enable_ntdll_Coverity="$2"
;;
ntdll-DOS_Attributes)
enable_ntdll_DOS_Attributes="$2"
;;
@ -3298,6 +3302,18 @@ if test "$enable_ntdll_CLI_Images" -eq 1; then
) >> "$patchlist"
fi
# Patchset ntdll-Coverity
# |
# | Modified files:
# | * dlls/ntdll/threadpool.c
# |
if test "$enable_ntdll_Coverity" -eq 1; then
patch_apply ntdll-Coverity/0001-ntdll-Fix-incorrect-assignment-in-assert-statement-C.patch
(
echo '+ { "Sebastian Lackner", "ntdll: Fix incorrect assignment in assert statement (Coverity).", 1 },';
) >> "$patchlist"
fi
# Patchset ntdll-DOS_Attributes
# |
# | This patchset fixes the following Wine bugs: