svn path=/trunk/; revision=70058
* pValue: address to receive the property value as a 32-bit signed integer
*
* RETURNS
* pValue: address to receive the property value as a 32-bit signed integer
*
* RETURNS
-BOOL WINAPI SHPropertyBag_ReadLONG(IPropertyBag *ppb, LPCWSTR pszPropName, LPLONG pValue)
+HRESULT WINAPI SHPropertyBag_ReadLONG(IPropertyBag *ppb, LPCWSTR pszPropName, LPLONG pValue)
{
VARIANT var;
HRESULT hr;
{
VARIANT var;
HRESULT hr;
if (lpszPath)
{
LPSTR lpszFileName = PathFindFileNameA(lpszPath);
if (lpszPath)
{
LPSTR lpszFileName = PathFindFileNameA(lpszPath);
+ if(lpszFileName != lpszPath)
RtlMoveMemory(lpszPath, lpszFileName, strlen(lpszFileName)+1);
}
}
RtlMoveMemory(lpszPath, lpszFileName, strlen(lpszFileName)+1);
}
}
TRACE("(%s)\n", debugstr_w(lpszPath));
lpszFileName = PathFindFileNameW(lpszPath);
TRACE("(%s)\n", debugstr_w(lpszPath));
lpszFileName = PathFindFileNameW(lpszPath);
+ if(lpszFileName != lpszPath)
RtlMoveMemory(lpszPath, lpszFileName, (strlenW(lpszFileName)+1)*sizeof(WCHAR));
}
RtlMoveMemory(lpszPath, lpszFileName, (strlenW(lpszFileName)+1)*sizeof(WCHAR));
}
LPSHUSKEY hKey = hUSKey;
LONG ret = ERROR_SUCCESS;
LPSHUSKEY hKey = hUSKey;
LONG ret = ERROR_SUCCESS;
+ if (!hKey)
+ return ERROR_INVALID_PARAMETER;
+
if (hKey->HKCUkey)
ret = RegCloseKey(hKey->HKCUkey);
if (hKey->HKCUstart && hKey->HKCUstart != HKEY_CURRENT_USER)
if (hKey->HKCUkey)
ret = RegCloseKey(hKey->HKCUkey);
if (hKey->HKCUstart && hKey->HKCUstart != HKEY_CURRENT_USER)
reactos/dll/win32/shdocvw # Synced to WineStaging-1.7.47
reactos/dll/win32/shell32 # Forked at Wine-20071011
reactos/dll/win32/shfolder # Synced to WineStaging-1.7.47
reactos/dll/win32/shdocvw # Synced to WineStaging-1.7.47
reactos/dll/win32/shell32 # Forked at Wine-20071011
reactos/dll/win32/shfolder # Synced to WineStaging-1.7.47
-reactos/dll/win32/shlwapi # Synced to WineStaging-1.7.47
+reactos/dll/win32/shlwapi # Synced to WineStaging-1.7.55
reactos/dll/win32/slbcsp # Synced to WineStaging-1.7.47
reactos/dll/win32/snmpapi # Synced to WineStaging-1.7.47
reactos/dll/win32/softpub # Synced to WineStaging-1.7.47
reactos/dll/win32/slbcsp # Synced to WineStaging-1.7.47
reactos/dll/win32/snmpapi # Synced to WineStaging-1.7.47
reactos/dll/win32/softpub # Synced to WineStaging-1.7.47