mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[APPHELP] Fix MAX_GUID_STRING_LEN define; use it for one buffer (#7137)
This commit is contained in:
parent
04f04efc96
commit
b3094aa001
1 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,8 @@ const UNICODE_STRING InstalledSDBKeyName = RTL_CONSTANT_STRING(L"\\Registry\\Mac
|
|||
/* from dpfilter.h */
|
||||
#define DPFLTR_APPCOMPAT_ID 123
|
||||
|
||||
#define MAX_GUID_STRING_LEN sizeof("{12345678-1234-1234-0123-456789abcdef}")
|
||||
#define MAX_GUID_STRING_LEN RTL_NUMBER_OF("{12345678-1234-1234-0123-456789abcdef}")
|
||||
C_ASSERT(MAX_GUID_STRING_LEN == 39); // See psdk/cfgmgr32.h
|
||||
|
||||
#ifndef NT_SUCCESS
|
||||
#define NT_SUCCESS(StatCode) ((NTSTATUS)(StatCode) >= 0)
|
||||
|
@ -405,7 +406,7 @@ BOOL WINAPI SdbRegisterDatabase(
|
|||
*/
|
||||
BOOL WINAPI SdbUnregisterDatabase(_In_ const GUID *pguidDB)
|
||||
{
|
||||
WCHAR KeyBuffer[MAX_PATH], GuidBuffer[50];
|
||||
WCHAR KeyBuffer[MAX_PATH], GuidBuffer[MAX_GUID_STRING_LEN];
|
||||
UNICODE_STRING KeyName;
|
||||
ACCESS_MASK KeyAccess;
|
||||
OBJECT_ATTRIBUTES ObjectKey = RTL_INIT_OBJECT_ATTRIBUTES(&KeyName, OBJ_CASE_INSENSITIVE);
|
||||
|
|
Loading…
Reference in a new issue