mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +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_
|
#ifndef _DFS_PCH_
|
||||||
#define _DFS_PCH_
|
#define _DFS_PCH_
|
||||||
|
|
||||||
#ifndef INIT_SECTION
|
#include <section_attribs.h>
|
||||||
#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
|
|
||||||
|
|
||||||
#define DFS_OPEN_CONTEXT 0xFF444653
|
#define DFS_OPEN_CONTEXT 0xFF444653
|
||||||
#define DFS_DOWNLEVEL_OPEN_CONTEXT 0x11444653
|
#define DFS_DOWNLEVEL_OPEN_CONTEXT 0x11444653
|
||||||
|
|
|
@ -8,12 +8,7 @@
|
||||||
#include <wdmguid.h>
|
#include <wdmguid.h>
|
||||||
#include <ndk/psfuncs.h>
|
#include <ndk/psfuncs.h>
|
||||||
#include <ntdddisk.h>
|
#include <ntdddisk.h>
|
||||||
|
#include <section_attribs.h>
|
||||||
#ifdef __GNUC__
|
|
||||||
#define INIT_SECTION __attribute__((section ("INIT")))
|
|
||||||
#else
|
|
||||||
#define INIT_SECTION /* Done via alloc_text for MSC */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _DEVICE_EXTENSION
|
typedef struct _DEVICE_EXTENSION
|
||||||
{
|
{
|
||||||
|
@ -233,7 +228,7 @@ HasDriveLetter(
|
||||||
IN PDEVICE_INFORMATION DeviceInformation
|
IN PDEVICE_INFORMATION DeviceInformation
|
||||||
);
|
);
|
||||||
|
|
||||||
INIT_SECTION
|
INIT_FUNCTION
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
MountmgrReadNoAutoMount(
|
MountmgrReadNoAutoMount(
|
||||||
IN PUNICODE_STRING RegistryPath
|
IN PUNICODE_STRING RegistryPath
|
||||||
|
|
|
@ -908,7 +908,7 @@ MountMgrUnload(IN struct _DRIVER_OBJECT *DriverObject)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
INIT_SECTION
|
INIT_FUNCTION
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
MountmgrReadNoAutoMount(IN PUNICODE_STRING RegistryPath)
|
MountmgrReadNoAutoMount(IN PUNICODE_STRING RegistryPath)
|
||||||
{
|
{
|
||||||
|
@ -1802,7 +1802,7 @@ MountMgrShutdown(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
INIT_SECTION
|
INIT_FUNCTION
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
||||||
|
|
Loading…
Reference in a new issue