[OLEACC] Sync with Wine Staging 4.18. CORE-16441
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 23 Nov 2019 11:03:49 +0000 (12:03 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 23 Nov 2019 11:03:49 +0000 (12:03 +0100)
dll/win32/oleacc/client.c
dll/win32/oleacc/main.c
dll/win32/oleacc/window.c
media/doc/README.WINE

index 40e7fbd..1d43ec3 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "oleacc_private.h"
 
-#include "wine/unicode.h"
 #include "wine/debug.h"
 #include "wine/heap.h"
 
@@ -353,7 +352,7 @@ static HRESULT WINAPI Client_accLocation(IAccessible *iface, LONG *pxLeft,
     if(!GetClientRect(This->hwnd, &rect))
         return S_OK;
 
-    pt.x = rect.left,
+    pt.x = rect.left;
     pt.y = rect.top;
     MapWindowPoints(This->hwnd, NULL, &pt, 1);
     *pxLeft = pt.x;
index 01ff575..57b02a0 100644 (file)
 #include "commctrl.h"
 #include "rpcproxy.h"
 
+#ifdef __REACTOS__
+#include <wchar.h>
+#include <winnls.h>
+#endif
+
 #include "initguid.h"
 #include "oleacc_private.h"
 #include "resource.h"
 
-#include "wine/unicode.h"
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(oleacc);
@@ -114,7 +118,7 @@ static accessible_create get_builtin_accessible_obj(HWND hwnd, LONG objid)
     TRACE("got window class: %s\n", debugstr_w(class_name));
 
     for(i=0; i<ARRAY_SIZE(builtin_classes); i++) {
-        if(!strcmpiW(class_name, builtin_classes[i].name)) {
+        if(!wcsicmp(class_name, builtin_classes[i].name)) {
             accessible_create ret;
 
             ret = (objid==OBJID_CLIENT ?
@@ -198,13 +202,13 @@ HRESULT WINAPI ObjectFromLresult( LRESULT result, REFIID riid, WPARAM wParam, vo
     if(memcmp(atom_str, lresult_atom_prefix, sizeof(lresult_atom_prefix)))
         return E_FAIL;
     p = atom_str + ARRAY_SIZE(lresult_atom_prefix);
-    proc_id = strtoulW(p, &p, 16);
+    proc_id = wcstoul(p, &p, 16);
     if(*p != ':')
         return E_FAIL;
-    server_mapping = ULongToHandle( strtoulW(p+1, &p, 16) );
+    server_mapping = ULongToHandle( wcstoul(p+1, &p, 16) );
     if(*p != ':')
         return E_FAIL;
-    size = strtoulW(p+1, &p, 16);
+    size = wcstoul(p+1, &p, 16);
     if(*p != 0)
         return E_FAIL;
 
@@ -320,7 +324,7 @@ LRESULT WINAPI LresultFromObject( REFIID riid, WPARAM wParam, LPUNKNOWN pAcc )
     }
 
     memcpy(atom_str, lresult_atom_prefix, sizeof(lresult_atom_prefix));
-    sprintfW(atom_str+ARRAY_SIZE(lresult_atom_prefix), atom_fmt, GetCurrentProcessId(),
+    swprintf(atom_str+ARRAY_SIZE(lresult_atom_prefix), atom_fmt, GetCurrentProcessId(),
              HandleToUlong(mapping), stat.cbSize.u.LowPart);
     atom = GlobalAddAtomW(atom_str);
     if(!atom) {
index 32c19fd..5957d49 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "oleacc_private.h"
 
-#include "wine/unicode.h"
 #include "wine/debug.h"
 #include "wine/heap.h"
 
index 2376a96..2d0c7cc 100644 (file)
@@ -141,7 +141,7 @@ dll/win32/objsel              # Synced to WineStaging-4.18
 dll/win32/odbc32              # Synced to WineStaging-4.18. Depends on port of Linux ODBC.
 dll/win32/odbccp32            # Synced to WineStaging-4.18
 dll/win32/ole32               # Synced to WineStaging-4.18
-dll/win32/oleacc              # Synced to WineStaging-4.0
+dll/win32/oleacc              # Synced to WineStaging-4.18
 dll/win32/oleaut32            # Synced to WineStaging-4.0
 dll/win32/olecli32            # Synced to WineStaging-3.3
 dll/win32/oledlg              # Synced to WineStaging-4.0