app: fix warnings for win32 builds.
Eliminates some "assignment from incompatible pointer type" warnings, on calls to GetProcAddress().
This commit is contained in:
parent
fc2a4cd589
commit
6edc9380f3
1 changed files with 9 additions and 6 deletions
15
app/main.c
15
app/main.c
|
|
@ -324,8 +324,9 @@ main (int argc,
|
|||
typedef BOOL (WINAPI *t_SetDllDirectoryA) (LPCSTR lpPathName);
|
||||
t_SetDllDirectoryA p_SetDllDirectoryA;
|
||||
|
||||
p_SetDllDirectoryA = GetProcAddress (GetModuleHandle ("kernel32.dll"),
|
||||
"SetDllDirectoryA");
|
||||
p_SetDllDirectoryA =
|
||||
(t_SetDllDirectoryA) GetProcAddress (GetModuleHandle ("kernel32.dll"),
|
||||
"SetDllDirectoryA");
|
||||
if (p_SetDllDirectoryA)
|
||||
(*p_SetDllDirectoryA) ("");
|
||||
}
|
||||
|
|
@ -399,8 +400,9 @@ main (int argc,
|
|||
typedef BOOL (WINAPI *t_SetProcessDEPPolicy) (DWORD dwFlags);
|
||||
t_SetProcessDEPPolicy p_SetProcessDEPPolicy;
|
||||
|
||||
p_SetProcessDEPPolicy = GetProcAddress (GetModuleHandle ("kernel32.dll"),
|
||||
"SetProcessDEPPolicy");
|
||||
p_SetProcessDEPPolicy =
|
||||
(t_SetProcessDEPPolicy) GetProcAddress (GetModuleHandle ("kernel32.dll"),
|
||||
"SetProcessDEPPolicy");
|
||||
if (p_SetProcessDEPPolicy)
|
||||
(*p_SetProcessDEPPolicy) (PROCESS_DEP_ENABLE|PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION);
|
||||
}
|
||||
|
|
@ -411,8 +413,9 @@ main (int argc,
|
|||
typedef HRESULT (WINAPI *t_SetCurrentProcessExplicitAppUserModelID) (PCWSTR lpPathName);
|
||||
t_SetCurrentProcessExplicitAppUserModelID p_SetCurrentProcessExplicitAppUserModelID;
|
||||
|
||||
p_SetCurrentProcessExplicitAppUserModelID = GetProcAddress (GetModuleHandle ("shell32.dll"),
|
||||
"SetCurrentProcessExplicitAppUserModelID");
|
||||
p_SetCurrentProcessExplicitAppUserModelID =
|
||||
(t_SetCurrentProcessExplicitAppUserModelID) GetProcAddress (GetModuleHandle ("shell32.dll"),
|
||||
"SetCurrentProcessExplicitAppUserModelID");
|
||||
if (p_SetCurrentProcessExplicitAppUserModelID)
|
||||
(*p_SetCurrentProcessExplicitAppUserModelID) (L"gimp.GimpApplication");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue