aboutsummaryrefslogtreecommitdiff
path: root/src/lib/os_installation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/os_installation.c')
-rw-r--r--src/lib/os_installation.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/os_installation.c b/src/lib/os_installation.c
index aca3f133..fadf2409 100644
--- a/src/lib/os_installation.c
+++ b/src/lib/os_installation.c
@@ -111,6 +111,26 @@ get_path_from_proc_exe ()
111 111
112 112
113#if WINDOWS 113#if WINDOWS
114static HINSTANCE dll_instance;
115
116BOOL WINAPI
117DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
118{
119 switch (fdwReason)
120 {
121 case DLL_PROCESS_ATTACH:
122 dll_instance = hinstDLL;
123 break;
124 case DLL_THREAD_ATTACH:
125 break;
126 case DLL_THREAD_DETACH:
127 break;
128 case DLL_PROCESS_DETACH:
129 break;
130 }
131 return TRUE;
132}
133
114/** 134/**
115 * Try to determine path with win32-specific function 135 * Try to determine path with win32-specific function
116 * 136 *