From 0a9bdf2bf0303092abcd7cc2240e60b0bc39b9a4 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 5 Nov 2009 10:07:16 +0000 Subject: [PATCH 1/1] [shell32] Gabriel Ilardi - Properly stub SHSetUnreadMailCountW and SHGetUnreadMailCountW to unregress Thunderbird and possibly other email clients. See issue #4940 for more details. svn path=/trunk/; revision=43971 --- reactos/dll/win32/shell32/shell32.spec | 4 ++-- reactos/dll/win32/shell32/stubs.c | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/shell32/shell32.spec b/reactos/dll/win32/shell32/shell32.spec index 75fb65ffd3c..bb7e0d23c09 100644 --- a/reactos/dll/win32/shell32/shell32.spec +++ b/reactos/dll/win32/shell32/shell32.spec @@ -316,7 +316,7 @@ 316 stdcall SHGetSpecialFolderLocation(long long ptr) 317 stdcall SHGetSpecialFolderPathA(long ptr long long) 318 stdcall SHGetSpecialFolderPathW(long ptr long long) -319 stub SHGetUnreadMailCountW +319 stdcall SHGetUnreadMailCountW (long wstr long ptr wstr long) 320 stdcall SHHelpShortcuts_RunDLL(long long long long) SHHelpShortcuts_RunDLLA 321 stdcall SHHelpShortcuts_RunDLLA(long long long long) 322 stdcall SHHelpShortcuts_RunDLLW(long long long long) @@ -332,7 +332,7 @@ 332 stdcall SHQueryRecycleBinA(str ptr) 333 stdcall SHQueryRecycleBinW(wstr ptr) 334 stdcall SHSetLocalizedName(wstr wstr long) -335 stub SHSetUnreadMailCountW +335 stdcall SHSetUnreadMailCountW (wstr long wstr) 336 stdcall SHUpdateRecycleBinIcon() 337 stdcall SheChangeDirA(str) 338 stdcall SheChangeDirExA(str) diff --git a/reactos/dll/win32/shell32/stubs.c b/reactos/dll/win32/shell32/stubs.c index 2ac288701d3..0056a4f2c6f 100644 --- a/reactos/dll/win32/shell32/stubs.c +++ b/reactos/dll/win32/shell32/stubs.c @@ -131,6 +131,32 @@ SHCreateFileExtractIconW(LPCWSTR pszPath, return E_FAIL; } +HRESULT +WINAPI +SHGetUnreadMailCountW(HKEY hKeyUser, + LPCWSTR pszMailAddress, + DWORD *pdwCount, + FILETIME *pFileTime, + LPCWSTR pszShellExecuteCommand, + int cchShellExecuteCommand) +{ + FIXME("SHGetUnreadMailCountW() stub\n"); + return E_FAIL; +}; + +/* + * Unimplemented + */ +HRESULT +WINAPI +SHSetUnreadMailCountW(LPCWSTR pszMailAddress, + DWORD dwCount, + LPCWSTR pszShellExecuteCommand) +{ + FIXME("SHSetUnreadMailCountW() stub\n"); + return E_FAIL; +} + /* * Unimplemented */ -- 2.17.1