From 449dfadf51601ef504e3808676e57cb2918a3958 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Thu, 12 Oct 2006 19:41:53 +0200 Subject: [PATCH] shell32: Implement SHRegQueryValueA with RegQueryValueA. --- dlls/shell32/shell32.spec | 2 +- dlls/shell32/shellreg.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec index debb9a46f84..562db746acc 100644 --- a/dlls/shell32/shell32.spec +++ b/dlls/shell32/shell32.spec @@ -215,7 +215,7 @@ 505 stdcall SHRegCloseKey (long) 506 stdcall SHRegOpenKeyA (long str long) 507 stdcall SHRegOpenKeyW (long wstr long) - 508 stub SHRegQueryValueA + 508 stdcall SHRegQueryValueA(long str ptr ptr) 509 stdcall SHRegQueryValueExA(long str ptr ptr ptr ptr) 510 stdcall SHRegQueryValueW (long long long long) 511 stdcall SHRegQueryValueExW (long wstr ptr ptr ptr ptr) diff --git a/dlls/shell32/shellreg.c b/dlls/shell32/shellreg.c index 5db5ccd2bc5..a305c8bfc3b 100644 --- a/dlls/shell32/shellreg.c +++ b/dlls/shell32/shellreg.c @@ -67,6 +67,16 @@ HRESULT WINAPI SHRegOpenKeyW ( return RegOpenKeyW( hkey, lpszSubKey, retkey ); } +/************************************************************************* + * SHRegQueryValueA [SHELL32.508] + * + */ +HRESULT WINAPI SHRegQueryValueA(HKEY hkey, LPSTR lpSubKey, LPSTR lpValue, LPDWORD lpcbValue) +{ + TRACE("(%p %s %p %p)\n", hkey, debugstr_a(lpSubKey), lpValue, lpcbValue); + return RegQueryValueA(hkey, lpSubKey, lpValue, (LONG*)lpcbValue); +} + /************************************************************************* * SHRegQueryValueExA [SHELL32.509] *