advapi32: Mark some registry functions as hotpatchable.
Signed-off-by: Michael Müller <michael@fds-team.de> Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
This commit is contained in:
parent
cde2fbb08e
commit
9eb8aa1ebb
|
@ -23,6 +23,8 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -522,7 +524,7 @@ LSTATUS WINAPI RegOpenKeyExW( HKEY hkey, LPCWSTR name, DWORD options, REGSAM acc
|
||||||
* Unlike RegCreateKeyExA(), this function will not create the key if it
|
* Unlike RegCreateKeyExA(), this function will not create the key if it
|
||||||
* does not exist.
|
* does not exist.
|
||||||
*/
|
*/
|
||||||
LSTATUS WINAPI RegOpenKeyExA( HKEY hkey, LPCSTR name, DWORD options, REGSAM access, PHKEY retkey )
|
LSTATUS WINAPI DECLSPEC_HOTPATCH RegOpenKeyExA( HKEY hkey, LPCSTR name, DWORD options, REGSAM access, PHKEY retkey )
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES attr;
|
OBJECT_ATTRIBUTES attr;
|
||||||
STRING nameA;
|
STRING nameA;
|
||||||
|
@ -1107,7 +1109,7 @@ LSTATUS WINAPI RegQueryInfoKeyA( HKEY hkey, LPSTR class, LPDWORD class_len, LPDW
|
||||||
* Success: ERROR_SUCCESS
|
* Success: ERROR_SUCCESS
|
||||||
* Failure: Error code
|
* Failure: Error code
|
||||||
*/
|
*/
|
||||||
LSTATUS WINAPI RegCloseKey( HKEY hkey )
|
LSTATUS WINAPI DECLSPEC_HOTPATCH RegCloseKey( HKEY hkey )
|
||||||
{
|
{
|
||||||
if (!hkey) return ERROR_INVALID_HANDLE;
|
if (!hkey) return ERROR_INVALID_HANDLE;
|
||||||
if (hkey >= (HKEY)0x80000000) return ERROR_SUCCESS;
|
if (hkey >= (HKEY)0x80000000) return ERROR_SUCCESS;
|
||||||
|
@ -1477,8 +1479,8 @@ LSTATUS WINAPI RegQueryValueExW( HKEY hkey, LPCWSTR name, LPDWORD reserved, LPDW
|
||||||
* MSDN states that if data is too small it is partially filled. In reality
|
* MSDN states that if data is too small it is partially filled. In reality
|
||||||
* it remains untouched.
|
* it remains untouched.
|
||||||
*/
|
*/
|
||||||
LSTATUS WINAPI RegQueryValueExA( HKEY hkey, LPCSTR name, LPDWORD reserved, LPDWORD type,
|
LSTATUS WINAPI DECLSPEC_HOTPATCH RegQueryValueExA( HKEY hkey, LPCSTR name, LPDWORD reserved,
|
||||||
LPBYTE data, LPDWORD count )
|
LPDWORD type, LPBYTE data, LPDWORD count )
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
ANSI_STRING nameA;
|
ANSI_STRING nameA;
|
||||||
|
|
Loading…
Reference in New Issue