comdlg32/tests: Disable test which crashes on Win10

André Hentschel nerv at dawncrow.de
Fri Oct 16 06:40:43 CDT 2015


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
 dlls/comdlg32/tests/printdlg.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c
index 7e06c97..4c6a473 100644
--- a/dlls/comdlg32/tests/printdlg.c
+++ b/dlls/comdlg32/tests/printdlg.c
@@ -379,14 +379,16 @@ static void test_PrintDlgExW(void)
         return;
     }
 
-    /* Set CommDlgExtendedError != 0 */
-    PrintDlgA(NULL);
-    SetLastError(0xdeadbeef);
-    res = pPrintDlgExW(NULL);
-    ok( (res == E_INVALIDARG),
-        "got 0x%x with %u and %u (expected 'E_INVALIDARG')\n",
-        res, GetLastError(), CommDlgExtendedError());
-
+    if (0) /* Crashes on Win10 */
+    {
+        /* Set CommDlgExtendedError != 0 */
+        PrintDlgA(NULL);
+        SetLastError(0xdeadbeef);
+        res = pPrintDlgExW(NULL);
+        ok( (res == E_INVALIDARG),
+            "got 0x%x with %u and %u (expected 'E_INVALIDARG')\n",
+            res, GetLastError(), CommDlgExtendedError() );
+    }
 
     pDlg = HeapAlloc(GetProcessHeap(), 0, (sizeof(PRINTDLGEXW)) + 8);
     if (!pDlg) return;
-- 
1.9.1




More information about the wine-patches mailing list