Author: akhaldi
Date: Sun Mar 5 21:44:19 2017
New Revision: 74109
URL:
http://svn.reactos.org/svn/reactos?rev=74109&view=rev
Log:
[RICHED20_WINETEST] Sync with Wine Staging 2.2. CORE-12823
Modified:
trunk/rostests/winetests/riched20/txtsrv.c
Modified: trunk/rostests/winetests/riched20/txtsrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/riched20/txtsrv…
==============================================================================
--- trunk/rostests/winetests/riched20/txtsrv.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/riched20/txtsrv.c [iso-8859-1] Sun Mar 5 21:44:19 2017
@@ -99,7 +99,7 @@
ITextHostTestImpl *This = impl_from_ITextHost(iface);
if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, pIID_ITextHost)) {
- *ppvObject = This;
+ *ppvObject = &This->ITextHost_iface;
ITextHost_AddRef((ITextHost *)*ppvObject);
return S_OK;
}
@@ -681,6 +681,16 @@
ok(memcmp(rettext,settext,SysStringByteLen(rettext)) == 0,
"String returned differs\n");
+ /* Null-pointer should behave the same as empty-string */
+
+ hres = ITextServices_TxSetText(txtserv, 0);
+ ok(hres == S_OK, "ITextServices_TxSetText failed (result = %x)\n", hres);
+
+ hres = ITextServices_TxGetText(txtserv, &rettext);
+ ok(hres == S_OK, "ITextServices_TxGetText failed (result = %x)\n", hres);
+ ok(SysStringLen(rettext) == 0,
+ "String returned of wrong length (expected 0, got %d)\n",
SysStringLen(rettext));
+
SysFreeString(rettext);
ITextServices_Release(txtserv);
ITextHost_Release(host);