"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/oleaut32/tests/vartype.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

vartype.c  (wine-5.12.tar.xz):vartype.c  (wine-5.13.tar.xz)
skipping to change at line 4592 skipping to change at line 4592
float f; float f;
lcid = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT); lcid = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT);
lcid_spanish = MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH), SORT_DEFAUL T); lcid_spanish = MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH), SORT_DEFAUL T);
f = 654322.23456f; f = 654322.23456f;
hres = VarBstrFromR4(f, lcid, 0, &bstr); hres = VarBstrFromR4(f, lcid, 0, &bstr);
ok(hres == S_OK, "got hres 0x%08x\n", hres); ok(hres == S_OK, "got hres 0x%08x\n", hres);
if (bstr) if (bstr)
{ {
todo_wine {
/* MSDN states that rounding of R4/R8 is dependent on the underlying
* bit pattern of the number and so is architecture dependent. In this
* case Wine returns .2 (which is more correct) and Native returns .3
*/
ok(memcmp(bstr, szNative, sizeof(szNative)) == 0, "string different\n"); ok(memcmp(bstr, szNative, sizeof(szNative)) == 0, "string different\n");
}
SysFreeString(bstr); SysFreeString(bstr);
} }
f = -0.0; f = -0.0;
hres = VarBstrFromR4(f, lcid, 0, &bstr); hres = VarBstrFromR4(f, lcid, 0, &bstr);
ok(hres == S_OK, "got hres 0x%08x\n", hres); ok(hres == S_OK, "got hres 0x%08x\n", hres);
if (bstr) if (bstr)
{ {
if (bstr[0] == '-') if (bstr[0] == '-')
ok(memcmp(bstr + 1, szZero, sizeof(szZero)) == 0, "negative zero (got %s)\n", wtoascii(bstr)); ok(memcmp(bstr + 1, szZero, sizeof(szZero)) == 0, "negative zero (got %s)\n", wtoascii(bstr));
 End of changes. 2 change blocks. 
6 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)