File abiword-3.0.2-build-fix.patch of Package mingw64-abiword

--- abiword-3.0.2/plugins/collab/core/sync/xp/Synchronizer.cpp.orig	2023-04-22 01:48:36.431878476 +0200
+++ abiword-3.0.2/plugins/collab/core/sync/xp/Synchronizer.cpp	2023-04-22 01:49:32.227935678 +0200
@@ -199,16 +199,10 @@
 			(void *) this
 		);
 	UT_DEBUGMSG(("Created message window: HWND 0x%x\n", m_hWnd));
-	switch ((INT_PTR)m_hWnd)
-	{
-		case NULL:
-			UT_DEBUGMSG(("Win32 error: %d.\n", GetLastError()));
-			break;
-		default:
-			sm_iMessageWindows++;
-			break;
-			// ok!
-	};
+	if (!m_hWnd)
+		UT_DEBUGMSG(("Win32 error: %d.\n", GetLastError()));
+	else
+		sm_iMessageWindows++;
 }
 
 #else
openSUSE Build Service is sponsored by