You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch to fix test failure in kernel32/thread tests.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From 150188795c58473879e1047352e28ac3c8f69799 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sat, 22 Aug 2015 06:07:26 +0200
|
||||
Subject: kernel32/tests: Properly initialize buf before calling
|
||||
NtQueryInformationThread.
|
||||
|
||||
---
|
||||
dlls/kernel32/tests/thread.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
|
||||
index 0d1f4a6..561dd53 100644
|
||||
--- a/dlls/kernel32/tests/thread.c
|
||||
+++ b/dlls/kernel32/tests/thread.c
|
||||
@@ -1742,7 +1742,8 @@ static void test_thread_info(void)
|
||||
size = info_size[i];
|
||||
if (!size) size = sizeof(buf);
|
||||
ret_len = 0;
|
||||
- status = pNtQueryInformationThread(thread, i, buf, info_size[i], &ret_len);
|
||||
+ memset(buf, 0, size);
|
||||
+ status = pNtQueryInformationThread(thread, i, buf, size, &ret_len);
|
||||
if (status == STATUS_NOT_IMPLEMENTED) continue;
|
||||
if (status == STATUS_INVALID_INFO_CLASS) continue;
|
||||
if (status == STATUS_UNSUCCESSFUL) continue;
|
||||
--
|
||||
2.5.0
|
||||
|
||||
Reference in New Issue
Block a user