[CRT_APITEST] Restore direction flag to avoid false RTC break

With set direction flag the variables will not be initialized properly.
This commit is contained in:
Timo Kreuzer 2022-08-08 10:33:02 +03:00
parent dacbc603b6
commit f71940efb1

View file

@ -48,8 +48,8 @@ Test_strlen(PFN_STRLEN pstrlen)
eflags = __readeflags(); eflags = __readeflags();
__writeeflags(eflags | EFLAGS_DF); __writeeflags(eflags | EFLAGS_DF);
len = pstrlen(teststr + 4); len = pstrlen(teststr + 4);
eflags = __readeflags(); ok((__readeflags() & EFLAGS_DF) != 0, "Direction flag in ELFAGS was changed.");
ok((eflags & EFLAGS_DF) != 0, "Direction flag in ELFAGS was changed."); __writeeflags(eflags);
/* Only test this for the exported versions, intrinsics might do it /* Only test this for the exported versions, intrinsics might do it
differently. It's up to us to not do fishy stuff! Also crtdll does differently. It's up to us to not do fishy stuff! Also crtdll does