"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/shlwapi/tests/ordinal.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.

ordinal.c  (wine-5.12.tar.xz):ordinal.c  (wine-5.13.tar.xz)
skipping to change at line 1681 skipping to change at line 1681
/* crashes on native */ /* crashes on native */
pSHFormatDateTimeA(NULL, NULL, NULL, 0); pSHFormatDateTimeA(NULL, NULL, NULL, 0);
} }
GetLocalTime(&st); GetLocalTime(&st);
SystemTimeToFileTime(&st, &filetime); SystemTimeToFileTime(&st, &filetime);
/* SHFormatDateTime expects input as utc */ /* SHFormatDateTime expects input as utc */
LocalFileTimeToFileTime(&filetime, &filetime); LocalFileTimeToFileTime(&filetime, &filetime);
/* no way to get required buffer length here */ /* no way to get required buffer length here */
SetLastError(0xdeadbeef);
ret = pSHFormatDateTimeA(&filetime, NULL, NULL, 0); ret = pSHFormatDateTimeA(&filetime, NULL, NULL, 0);
ok(ret == 0, "got %d\n", ret); ok(ret == 0, "got %d\n", ret);
ok(GetLastError() == 0xdeadbeef || broken(GetLastError() == ERROR_SUCCESS /*
Win7 */),
"expected 0xdeadbeef, got %d\n", GetLastError());
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
buff[0] = 'a'; buff[1] = 0; buff[0] = 'a'; buff[1] = 0;
ret = pSHFormatDateTimeA(&filetime, NULL, buff, 0); ret = pSHFormatDateTimeA(&filetime, NULL, buff, 0);
ok(ret == 0, "got %d\n", ret); ok(ret == 0, "got %d\n", ret);
ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %d\n", GetLastErr or()); ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %d\n", GetLastErr or());
ok(buff[0] == 'a', "expected same string, got %s\n", buff); ok(buff[0] == 'a', "expected same string, got %s\n", buff);
/* flags needs to have FDTF_NOAUTOREADINGORDER for these tests to succeed on Vista+ */ /* flags needs to have FDTF_NOAUTOREADINGORDER for these tests to succeed on Vista+ */
 End of changes. 2 change blocks. 
4 lines changed or deleted 0 lines changed or added

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