[SHELL32][SHELL32_APITEST][SDK] Implement SheRemoveQuotesA/W (#5517)

- Implement SheRemoveQuotesA and SheRemoveQuotesW functions.
- Add She testcase into shell32_apitest.
- Add SheRemoveQuotesA/W into <undocshell.h>.
CORE-9277
This commit is contained in:
Katayama Hirofumi MZ 2023-08-05 19:44:13 +09:00 committed by GitHub
parent 1273bbe417
commit 358e45d33a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 123 additions and 12 deletions

View file

@ -440,26 +440,44 @@ SheSetCurDrive(INT iIndex)
return 1;
}
/*
* Unimplemented
*/
EXTERN_C LPWSTR
WINAPI
SheRemoveQuotesW(LPWSTR lpInput)
SheRemoveQuotesW(LPWSTR psz)
{
FIXME("SheRemoveQuotesW() stub\n");
return NULL;
PWCHAR pch;
if (*psz == L'"')
{
for (pch = psz + 1; *pch && *pch != L'"'; ++pch)
{
*(pch - 1) = *pch;
}
if (*pch == L'"')
*(pch - 1) = UNICODE_NULL;
}
return psz;
}
/*
* Unimplemented
*/
EXTERN_C LPSTR
WINAPI
SheRemoveQuotesA(LPSTR lpInput)
SheRemoveQuotesA(LPSTR psz)
{
FIXME("SheRemoveQuotesA() stub\n");
return NULL;
PCHAR pch;
if (*psz == '"')
{
for (pch = psz + 1; *pch && *pch != '"'; ++pch)
{
*(pch - 1) = *pch;
}
if (*pch == '"')
*(pch - 1) = ANSI_NULL;
}
return psz;
}
/*