mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MOUNTMGR][MUP] Use global definition of INIT_FUNCTION/INIT_SECTION (Addendum to 71fefa32
).
This commit is contained in:
parent
19f6fc2525
commit
53abbb06b5
3 changed files with 5 additions and 17 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue