mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[SHELL32_APITEST] Workaround on wine_dbgstr_w bugs
Double wine_dbgstr_w calls makes output broken. I used two buffers and kept the results of wine_dbgstr_w to do workaround. CORE-18080
This commit is contained in:
parent
02d92979d9
commit
2c4cb40d8e
|
@ -658,6 +658,9 @@ static void DoEntry(INT SectionNumber, INT LineNumber, const TEST_ENTRY *pEntry)
|
|||
INT Ret;
|
||||
DWORD Error;
|
||||
|
||||
ZeroMemory(Path, sizeof(Path));
|
||||
ZeroMemory(PathExpected, sizeof(PathExpected));
|
||||
|
||||
if (pEntry->NameBefore == NULL)
|
||||
{
|
||||
assert(pEntry->NameExpected == NULL);
|
||||
|
@ -750,8 +753,14 @@ static void DoEntry(INT SectionNumber, INT LineNumber, const TEST_ENTRY *pEntry)
|
|||
|
||||
if (pEntry->NameExpected && !(pEntry->EF_ & EF_APP_PATH))
|
||||
{
|
||||
char expected[MAX_PATH];
|
||||
char path[MAX_PATH];
|
||||
|
||||
lstrcpynA(expected, wine_dbgstr_w(PathExpected), _countof(expected));
|
||||
lstrcpynA(path, wine_dbgstr_w(Path), _countof(path));
|
||||
|
||||
ok(lstrcmpW(Path, PathExpected) == 0, "Section %d, Line %d: Path expected %s, was %s.\n",
|
||||
SectionNumber, LineNumber, wine_dbgstr_w(PathExpected), wine_dbgstr_w(Path));
|
||||
SectionNumber, LineNumber, expected, path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue