Module: wine
Branch: master
Commit: 9c60c34c9458fdc581c0468a3b6a65484fb408c2
URL: https://gitlab.winehq.org/wine/wine/-/commit/9c60c34c9458fdc581c0468a3b6a65…
Author: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com>
Date: Wed Apr 20 21:38:14 2022 -0400
msmpeg2vdec: Add DllGetClassObject() stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54955
---
dlls/msmpeg2vdec/Makefile.in | 3 +++
dlls/msmpeg2vdec/main.c | 27 +++++++++++++++++++++++++++
dlls/msmpeg2vdec/msmpeg2vdec.spec | 2 +-
3 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/dlls/msmpeg2vdec/Makefile.in b/dlls/msmpeg2vdec/Makefile.in
index d2dbf5adda0..609c6a34f9a 100644
--- a/dlls/msmpeg2vdec/Makefile.in
+++ b/dlls/msmpeg2vdec/Makefile.in
@@ -1 +1,4 @@
MODULE = msmpeg2vdec.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/msmpeg2vdec/main.c b/dlls/msmpeg2vdec/main.c
new file mode 100644
index 00000000000..0ff52f5d1cb
--- /dev/null
+++ b/dlls/msmpeg2vdec/main.c
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2023 Mohamad Al-Jaf
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(msmpeg2vdec);
+
+HRESULT WINAPI DllGetClassObject( REFCLSID clsid, REFIID riid, void **out )
+{
+ FIXME( "clsid %s, riid %s, out %p stub!\n", debugstr_guid(clsid), debugstr_guid(riid), out );
+ return CLASS_E_CLASSNOTAVAILABLE;
+}
diff --git a/dlls/msmpeg2vdec/msmpeg2vdec.spec b/dlls/msmpeg2vdec/msmpeg2vdec.spec
index 2ba3ab602f1..b81b77ce108 100644
--- a/dlls/msmpeg2vdec/msmpeg2vdec.spec
+++ b/dlls/msmpeg2vdec/msmpeg2vdec.spec
@@ -3,6 +3,6 @@
@ stub ?GetSurfaceSize@CVIDEOfilter@@QEAAJHPEAJ@Z
@ stub ?LoadSurface@CVIDEOfilter@@QEAAJHPEAEK@Z
@ stdcall -private DllCanUnloadNow()
-@ stub DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
Module: wine
Branch: master
Commit: f7d4eec45920ac18cbd55f85918d9a73b6bd5d0c
URL: https://gitlab.winehq.org/wine/wine/-/commit/f7d4eec45920ac18cbd55f85918d9a…
Author: Rémi Bernon <rbernon(a)codeweavers.com>
Date: Sat Apr 1 22:25:01 2023 +0200
winex11: Use the default IME implementation for ImeSelect.
---
dlls/winex11.drv/Makefile.in | 1 -
dlls/winex11.drv/ime.c | 72 ---------------------------------------
dlls/winex11.drv/winex11.drv.spec | 3 --
3 files changed, 76 deletions(-)
diff --git a/dlls/winex11.drv/Makefile.in b/dlls/winex11.drv/Makefile.in
index bdc4ebf8aed..1fb38c91144 100644
--- a/dlls/winex11.drv/Makefile.in
+++ b/dlls/winex11.drv/Makefile.in
@@ -14,7 +14,6 @@ C_SRCS = \
dllmain.c \
event.c \
graphics.c \
- ime.c \
init.c \
keyboard.c \
mouse.c \
diff --git a/dlls/winex11.drv/ime.c b/dlls/winex11.drv/ime.c
deleted file mode 100644
index daf6d89dc7a..00000000000
--- a/dlls/winex11.drv/ime.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * The IME for interfacing with XIM
- *
- * Copyright 2008 CodeWeavers, Aric Stewart
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-/*
- * Notes:
- * The normal flow for IMM/IME Processing is as follows.
- * 1) The Keyboard Driver generates key messages which are first passed to
- * the IMM and then to IME via ImeProcessKey. If the IME returns 0 then
- * it does not want the key and the keyboard driver then generates the
- * WM_KEYUP/WM_KEYDOWN messages. However if the IME is going to process the
- * key it returns non-zero.
- * 2) If the IME is going to process the key then the IMM calls ImeToAsciiEx to
- * process the key. the IME modifies the HIMC structure to reflect the
- * current state and generates any messages it needs the IMM to process.
- * 3) IMM checks the messages and send them to the application in question. From
- * here the IMM level deals with if the application is IME aware or not.
- *
- * This flow does not work well for the X11 driver and XIM.
- * (It works fine for Mac)
- * As such we will have to reroute step 1. Instead the x11drv driver will
- * generate an XIM events and call directly into this IME implementation.
- * As such we will have to use the alternative ImmGenerateMessage path to be
- * generate the messages that we want the IMM layer to send to the application.
- */
-
-#include "x11drv_dll.h"
-#include "wine/debug.h"
-#include "imm.h"
-#include "immdev.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(imm);
-
-BOOL WINAPI ImeSelect(HIMC hIMC, BOOL fSelect)
-{
- LPINPUTCONTEXT lpIMC;
- TRACE("%p %s\n",hIMC,(fSelect)?"TRUE":"FALSE");
-
- if (!hIMC || !fSelect) return TRUE;
-
- /* Initialize our structures */
- lpIMC = ImmLockIMC(hIMC);
- if (lpIMC != NULL)
- {
- LPIMEPRIVATE myPrivate;
- myPrivate = ImmLockIMCC(lpIMC->hPrivate);
- myPrivate->bInComposition = FALSE;
- myPrivate->bInternalState = FALSE;
- myPrivate->textfont = NULL;
- myPrivate->hwndDefault = NULL;
- ImmUnlockIMCC(lpIMC->hPrivate);
- ImmUnlockIMC(hIMC);
- }
-
- return TRUE;
-}
diff --git a/dlls/winex11.drv/winex11.drv.spec b/dlls/winex11.drv/winex11.drv.spec
index c8d52d07f6d..a7334eef3d9 100644
--- a/dlls/winex11.drv/winex11.drv.spec
+++ b/dlls/winex11.drv/winex11.drv.spec
@@ -9,6 +9,3 @@
# System tray
@ cdecl wine_notify_icon(long ptr)
-
-#IME Interface
-@ stdcall ImeSelect(long long)