mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
[MOUNTMGR]
- Avoid an unnecessarily large stack buffer in MountMgrMountedDeviceArrival - Add missing OBJ_KERNEL_HANDLE. CORE-10207 svn path=/trunk/; revision=71140
This commit is contained in:
parent
1b444ed447
commit
83f145b065
1 changed files with 2 additions and 2 deletions
|
@ -958,7 +958,7 @@ MountMgrMountedDeviceArrival(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
PMOUNTDEV_UNIQUE_ID UniqueId, NewUniqueId;
|
||||
PSAVED_LINK_INFORMATION SavedLinkInformation;
|
||||
PDEVICE_INFORMATION DeviceInformation, CurrentDevice;
|
||||
WCHAR CSymLinkBuffer[MAX_PATH], LinkTargetBuffer[MAX_PATH];
|
||||
WCHAR CSymLinkBuffer[RTL_NUMBER_OF(Cunc)], LinkTargetBuffer[MAX_PATH];
|
||||
UNICODE_STRING TargetDeviceName, SuggestedLinkName, DeviceName, VolumeName, DriveLetter, LinkTarget, CSymLink;
|
||||
BOOLEAN HasGuid, HasGptDriveLetter, Valid, UseOnlyIfThereAreNoOtherLinks, IsDrvLetter, IsOff, IsVolumeName, LinkError;
|
||||
|
||||
|
@ -1119,7 +1119,7 @@ MountMgrMountedDeviceArrival(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&CSymLink,
|
||||
OBJ_CASE_INSENSITIVE,
|
||||
OBJ_KERNEL_HANDLE | OBJ_CASE_INSENSITIVE,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue