[PATCH] user32: add LogicalToPhysicalPoint/PhysicalToLogicalPoint stubs

Austin English austinenglish at gmail.com
Thu May 18 13:20:07 CDT 2017


Fixes https://bugs.winehq.org/show_bug.cgi?id=43039

Signed-off-by: Austin English <austinenglish at gmail.com>
---
 dlls/user32/user32.spec |  2 ++
 dlls/user32/winpos.c    | 24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index 1d492e48e7..4514877264 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -491,6 +491,7 @@
 @ stub LockWindowStation
 @ stdcall LockWindowUpdate(long)
 @ stdcall LockWorkStation()
+@ stdcall LogicalToPhysicalPoint(long ptr)
 @ stdcall LookupIconIdFromDirectory(ptr long)
 @ stdcall LookupIconIdFromDirectoryEx(ptr long long long long)
 @ stub MBToWCSEx
@@ -541,6 +542,7 @@
 # @ stub PaintMenuBar
 @ stdcall PeekMessageA(ptr long long long long)
 @ stdcall PeekMessageW(ptr long long long long)
+@ stdcall PhysicalToLogicalPoint(long ptr)
 @ stub PlaySoundEvent
 @ stdcall PostMessageA(long long long long)
 @ stdcall PostMessageW(long long long long)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index c2b35ec1f5..a9f3d9e263 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -2949,3 +2949,27 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
         else WINPOS_ShowIconTitle( hwnd, TRUE );
     }
 }
+
+/***********************************************************************
+ *		LogicalToPhysicalPoint (USER32.@)
+ */
+BOOL WINAPI LogicalToPhysicalPoint(HWND hwnd, POINT *point)
+{
+    static int once;
+
+    if (!once++)
+        FIXME("(%p %p) stub\n", hwnd, point);
+    return TRUE;
+}
+
+/***********************************************************************
+ *		PhysicalToLogicalPoint (USER32.@)
+ */
+BOOL WINAPI PhysicalToLogicalPoint(HWND hwnd, POINT *point)
+{
+    static int once;
+
+    if (!once++)
+        FIXME("(%p %p) stub\n", hwnd, point);
+    return TRUE;
+}
-- 
2.13.0




More information about the wine-patches mailing list