mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:03:00 +00:00
[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:
parent
1273bbe417
commit
358e45d33a
5 changed files with 123 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue