Author: akhaldi
Date: Thu Nov 17 23:15:02 2016
New Revision: 73298
URL:
http://svn.reactos.org/svn/reactos?rev=73298&view=rev
Log:
[VBSCRIPT] Sync with Wine Staging 1.9.23. CORE-12409
Modified:
trunk/reactos/dll/win32/vbscript/global.c
trunk/reactos/dll/win32/vbscript/interp.c
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/dll/win32/vbscript/global.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/vbscript/global.…
==============================================================================
--- trunk/reactos/dll/win32/vbscript/global.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/vbscript/global.c [iso-8859-1] Thu Nov 17 23:15:02 2016
@@ -1020,10 +1020,47 @@
return E_NOTIMPL;
}
-static HRESULT Global_StrComp(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT
*res)
-{
- FIXME("\n");
- return E_NOTIMPL;
+static HRESULT Global_StrComp(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VARIANT
*res)
+{
+ BSTR left, right;
+ int mode, ret;
+ HRESULT hres;
+ short val;
+
+ TRACE("(%s %s ...)\n", debugstr_variant(args), debugstr_variant(args+1));
+
+ assert(args_cnt == 2 || args_cnt == 3);
+
+ if (args_cnt == 3) {
+ hres = to_int(args+2, &mode);
+ if(FAILED(hres))
+ return hres;
+
+ if (mode != 0 && mode != 1) {
+ FIXME("unknown compare mode = %d\n", mode);
+ return E_FAIL;
+ }
+ }
+ else
+ mode = 0;
+
+ hres = to_string(args, &left);
+ if(FAILED(hres))
+ return hres;
+
+ hres = to_string(args+1, &right);
+ if(FAILED(hres))
+ {
+ SysFreeString(left);
+ return hres;
+ }
+
+ ret = mode ? strcmpiW(left, right) : strcmpW(left, right);
+ val = ret < 0 ? -1 : (ret > 0 ? 1 : 0);
+
+ SysFreeString(left);
+ SysFreeString(right);
+ return return_short(res, val);
}
static HRESULT Global_LCase(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT
*res)
Modified: trunk/reactos/dll/win32/vbscript/interp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/vbscript/interp.…
==============================================================================
--- trunk/reactos/dll/win32/vbscript/interp.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/vbscript/interp.c [iso-8859-1] Thu Nov 17 23:15:02 2016
@@ -177,7 +177,7 @@
if(!item->disp) {
IUnknown *unk;
- hres = IActiveScriptSite_GetItemInfo(ctx->script->site, name,
SCRIPTINFO_IUNKNOWN, &unk, NULL);
+ hres = IActiveScriptSite_GetItemInfo(ctx->script->site,
item->name, SCRIPTINFO_IUNKNOWN, &unk, NULL);
if(FAILED(hres)) {
WARN("GetItemInfo failed: %08x\n", hres);
continue;
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Thu Nov 17 23:15:02 2016
@@ -191,7 +191,7 @@
reactos/dll/win32/urlmon # Synced to WineStaging-1.9.23
reactos/dll/win32/usp10 # Synced to WineStaging-1.9.23
reactos/dll/win32/uxtheme # Forked
-reactos/dll/win32/vbscript # Synced to WineStaging-1.9.11
+reactos/dll/win32/vbscript # Synced to WineStaging-1.9.23
reactos/dll/win32/version # Synced to WineStaging-1.9.11
reactos/dll/win32/vssapi # Synced to WineStaging-1.9.11
reactos/dll/win32/wbemdisp # Synced to WineStaging-1.9.16