Commit 27457690 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Return 'My Compuer' PIDL when calling Desktop->ParseDisplayName() with

empty path string.
parent 0472291e
......@@ -229,12 +229,17 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
} else {
/* it's a filesystem path on the desktop. Let a FSFolder parse it */
if (*lpszDisplayName) {
/* build a complete path to create a simple pidl */
lstrcpyA(szPath, This->sPathTarget);
PathAddBackslashA(szPath);
len = lstrlenA(szPath);
WideCharToMultiByte(CP_ACP, 0, lpszDisplayName, -1, szPath + len, MAX_PATH - len, NULL, NULL);
pidlTemp = _ILCreateFromPathA(szPath);
} else {
pidlTemp = _ILCreateMyComputer();
}
szNext = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment