mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
shell32: Fix return value of PathProcessCommand.
This commit is contained in:
parent
90c70f755b
commit
a4af4b95b5
@ -700,7 +700,7 @@ BOOL WINAPI PathResolveAW(
|
|||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* PathProcessCommandA [SHELL32.653]
|
* PathProcessCommandA [SHELL32.653]
|
||||||
*/
|
*/
|
||||||
HRESULT WINAPI PathProcessCommandA (
|
LONG WINAPI PathProcessCommandA (
|
||||||
LPCSTR lpszPath,
|
LPCSTR lpszPath,
|
||||||
LPSTR lpszBuff,
|
LPSTR lpszBuff,
|
||||||
DWORD dwBuffSize,
|
DWORD dwBuffSize,
|
||||||
@ -708,14 +708,15 @@ HRESULT WINAPI PathProcessCommandA (
|
|||||||
{
|
{
|
||||||
FIXME("%s %p 0x%04lx 0x%04lx stub\n",
|
FIXME("%s %p 0x%04lx 0x%04lx stub\n",
|
||||||
lpszPath, lpszBuff, dwBuffSize, dwFlags);
|
lpszPath, lpszBuff, dwBuffSize, dwFlags);
|
||||||
strcpy(lpszBuff, lpszPath);
|
if(!lpszPath) return -1;
|
||||||
return 0;
|
if(lpszBuff) strcpy(lpszBuff, lpszPath);
|
||||||
|
return strlen(lpszPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* PathProcessCommandW
|
* PathProcessCommandW
|
||||||
*/
|
*/
|
||||||
HRESULT WINAPI PathProcessCommandW (
|
LONG WINAPI PathProcessCommandW (
|
||||||
LPCWSTR lpszPath,
|
LPCWSTR lpszPath,
|
||||||
LPWSTR lpszBuff,
|
LPWSTR lpszBuff,
|
||||||
DWORD dwBuffSize,
|
DWORD dwBuffSize,
|
||||||
@ -723,14 +724,15 @@ HRESULT WINAPI PathProcessCommandW (
|
|||||||
{
|
{
|
||||||
FIXME("(%s, %p, 0x%04lx, 0x%04lx) stub\n",
|
FIXME("(%s, %p, 0x%04lx, 0x%04lx) stub\n",
|
||||||
debugstr_w(lpszPath), lpszBuff, dwBuffSize, dwFlags);
|
debugstr_w(lpszPath), lpszBuff, dwBuffSize, dwFlags);
|
||||||
strcpyW(lpszBuff, lpszPath);
|
if(!lpszPath) return -1;
|
||||||
return 0;
|
if(lpszBuff) strcpyW(lpszBuff, lpszPath);
|
||||||
|
return strlenW(lpszPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* PathProcessCommand (SHELL32.653)
|
* PathProcessCommand (SHELL32.653)
|
||||||
*/
|
*/
|
||||||
HRESULT WINAPI PathProcessCommandAW (
|
LONG WINAPI PathProcessCommandAW (
|
||||||
LPCVOID lpszPath,
|
LPCVOID lpszPath,
|
||||||
LPVOID lpszBuff,
|
LPVOID lpszBuff,
|
||||||
DWORD dwBuffSize,
|
DWORD dwBuffSize,
|
||||||
|
@ -1165,6 +1165,7 @@ BOOL WINAPI WriteCabinetState(CABINETSTATE *);
|
|||||||
* Path Manipulation Routines
|
* Path Manipulation Routines
|
||||||
*/
|
*/
|
||||||
VOID WINAPI PathGetShortPath(LPWSTR pszPath);
|
VOID WINAPI PathGetShortPath(LPWSTR pszPath);
|
||||||
|
LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Drag And Drop Routines
|
* Drag And Drop Routines
|
||||||
|
Loading…
Reference in New Issue
Block a user