Lucian Poston : shell32: Stub GetRedirectionCapabilities with S_OK.
Alexandre Julliard
julliard at winehq.org
Sun Mar 18 09:02:32 CDT 2018
Module: wine
Branch: oldstable
Commit: 27bb92df21c12666f349c35fd2605aa5988074e1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=27bb92df21c12666f349c35fd2605aa5988074e1
Author: Lucian Poston <lucian.poston at gmail.com>
Date: Wed Nov 22 12:20:46 2017 -0800
shell32: Stub GetRedirectionCapabilities with S_OK.
Signed-off-by: Lucian Poston <lucian.poston at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 349064216a606c9c16be05da71ab5923a63d7c79)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/shell32/shellpath.c | 6 ++++--
dlls/shell32/tests/shellpath.c | 1 -
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index 9230623..e35eb09 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -5396,8 +5396,10 @@ static HRESULT WINAPI knownfolder_GetRedirectionCapabilities(
IKnownFolder *iface,
KF_REDIRECTION_CAPABILITIES *pCapabilities)
{
- FIXME("%p\n", pCapabilities);
- return E_NOTIMPL;
+ FIXME("%p stub\n", pCapabilities);
+ if(!pCapabilities) return E_INVALIDARG;
+ *pCapabilities = KF_REDIRECTION_CAPABILITIES_DENY_ALL;
+ return S_OK;
}
static HRESULT WINAPI knownfolder_GetFolderDefinition(
diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c
index 3c757ec..bb550aa 100644
--- a/dlls/shell32/tests/shellpath.c
+++ b/dlls/shell32/tests/shellpath.c
@@ -2121,7 +2121,6 @@ static void test_knownFolders(void)
CoTaskMemFree(folderPath);
hr = IKnownFolder_GetRedirectionCapabilities(folder, &redirectionCapabilities);
- todo_wine
ok(hr == S_OK, "failed to get redirection capabilities: 0x%08x\n", hr);
todo_wine
ok(redirectionCapabilities==0, "invalid redirection capabilities returned: %d\n", redirectionCapabilities);
More information about the wine-cvs
mailing list