aboutsummaryrefslogtreecommitdiffstats
path: root/modules/backup-restore/evolution-backup-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/backup-restore/evolution-backup-tool.c')
-rw-r--r--modules/backup-restore/evolution-backup-tool.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/modules/backup-restore/evolution-backup-tool.c b/modules/backup-restore/evolution-backup-tool.c
index 728b8f96f4..1e0ff4bb38 100644
--- a/modules/backup-restore/evolution-backup-tool.c
+++ b/modules/backup-restore/evolution-backup-tool.c
@@ -34,14 +34,6 @@
#ifdef DATADIR
#undef DATADIR
#endif
-#include <windows.h>
-#include <conio.h>
-#ifndef PROCESS_DEP_ENABLE
-#define PROCESS_DEP_ENABLE 0x00000001
-#endif
-#ifndef PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION
-#define PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION 0x00000002
-#endif
#endif
#include "e-util/e-util-private.h"
@@ -836,33 +828,7 @@ main (gint argc,
GError *error = NULL;
#ifdef G_OS_WIN32
- /* Reduce risks */
- {
- typedef BOOL (WINAPI *t_SetDllDirectoryA) (LPCSTR lpPathName);
- t_SetDllDirectoryA p_SetDllDirectoryA;
-
- p_SetDllDirectoryA = GetProcAddress (
- GetModuleHandle ("kernel32.dll"),
- "SetDllDirectoryA");
-
- if (p_SetDllDirectoryA != NULL)
- p_SetDllDirectoryA ("");
- }
-#ifndef _WIN64
- {
- typedef BOOL (WINAPI *t_SetProcessDEPPolicy) (DWORD dwFlags);
- t_SetProcessDEPPolicy p_SetProcessDEPPolicy;
-
- p_SetProcessDEPPolicy = GetProcAddress (
- GetModuleHandle ("kernel32.dll"),
- "SetProcessDEPPolicy");
-
- if (p_SetProcessDEPPolicy)
- p_SetProcessDEPPolicy (
- PROCESS_DEP_ENABLE |
- PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION);
- }
-#endif
+ e_util_win32_initialize ();
#endif
bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);