summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/w32/salinit.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sal/osl/w32/salinit.cxx b/sal/osl/w32/salinit.cxx
index ffe2c7e70132..806c35bc7536 100644
--- a/sal/osl/w32/salinit.cxx
+++ b/sal/osl/w32/salinit.cxx
@@ -47,11 +47,14 @@ void SAL_CALL sal_detail_initialize(int argc, char ** argv)
// BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE | BASE_SEARCH_PATH_PERMANENT);
HMODULE h = GetModuleHandleW(L"kernel32.dll");
if (h != 0) {
- FARPROC p = GetProcAddress(h, "SetProcessDEPPolicy");
+ FARPROC p;
+#ifndef _WIN64
+ p = GetProcAddress(h, "SetProcessDEPPolicy");
if (p != 0) {
reinterpret_cast< BOOL (WINAPI *)(DWORD) >(p)(0x00000001);
- }
- p = GetProcAddress(h, "SetDllDirectoryW");
+ }
+#endif
+ p = GetProcAddress(h, "SetDllDirectoryW");
if (p != 0) {
reinterpret_cast< BOOL (WINAPI *)(LPCWSTR) >(p)(L"");
}