user32: Adds test to check if the corresponding atom is released after calling UnregisterClass().

Ralf Habacker ralf.habacker at freenet.de
Mon Nov 26 07:07:40 CST 2018


From 4b215dcb3dce48f98cce133a5ac3f3f59055c1e0 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker at freenet.de>
Date: Mon, 26 Nov 2018 13:14:01 +0100
Subject: [1/2] user32: Adds test to check if the corresponding atom is
 released after calling UnregisterClass().

Releasing the atom is part of the implementation of UnregisterClass(),
but is currently not implemented into wine.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46180
Signed-off-by: Ralf Habacker <ralf.habacker at freenet.de>
---
 dlls/user32/tests/class.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index d6910d982d..1d61b0ad5e 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -230,6 +230,9 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
     ok(UnregisterClassW(className, hInstance),
         "UnregisterClass() failed\n");
 
+    char buffer[1024];
+    ok(GetClipboardFormatNameW(classatom, str, ARRAY_SIZE(str)) == 0),
+        "UnregisterClass() failed - unable to unregister atom\n");
     return;
 }
 
-- 
2.13.7



More information about the wine-devel mailing list