[MOUNTMGR][MUP] Use global definition of INIT_FUNCTION/INIT_SECTION (Addendum to 71fefa32).

This commit is contained in:
Hermès Bélusca-Maïto 2019-01-27 02:34:20 +01:00
parent 19f6fc2525
commit 53abbb06b5
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 5 additions and 17 deletions

View file

@ -1,14 +1,7 @@
#ifndef _DFS_PCH_
#define _DFS_PCH_
#ifndef INIT_SECTION
#ifdef __GNUC__
#define INIT_SECTION __attribute__((section ("INIT")))
#else
#define INIT_SECTION /* Done via alloc_text for MSC */
#endif
#define INIT_FUNCTION INIT_SECTION
#endif
#include <section_attribs.h>
#define DFS_OPEN_CONTEXT 0xFF444653
#define DFS_DOWNLEVEL_OPEN_CONTEXT 0x11444653

View file

@ -8,12 +8,7 @@
#include <wdmguid.h>
#include <ndk/psfuncs.h>
#include <ntdddisk.h>
#ifdef __GNUC__
#define INIT_SECTION __attribute__((section ("INIT")))
#else
#define INIT_SECTION /* Done via alloc_text for MSC */
#endif
#include <section_attribs.h>
typedef struct _DEVICE_EXTENSION
{
@ -233,7 +228,7 @@ HasDriveLetter(
IN PDEVICE_INFORMATION DeviceInformation
);
INIT_SECTION
INIT_FUNCTION
BOOLEAN
MountmgrReadNoAutoMount(
IN PUNICODE_STRING RegistryPath

View file

@ -908,7 +908,7 @@ MountMgrUnload(IN struct _DRIVER_OBJECT *DriverObject)
/*
* @implemented
*/
INIT_SECTION
INIT_FUNCTION
BOOLEAN
MountmgrReadNoAutoMount(IN PUNICODE_STRING RegistryPath)
{
@ -1802,7 +1802,7 @@ MountMgrShutdown(IN PDEVICE_OBJECT DeviceObject,
/* FUNCTIONS ****************************************************************/
INIT_SECTION
INIT_FUNCTION
NTSTATUS
NTAPI
DriverEntry(IN PDRIVER_OBJECT DriverObject,