summaryrefslogtreecommitdiffstats
path: root/src/openjpeg-1-dllfix.patch
blob: ce38dba44b426bf7192249a10be09a80a96b8007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This file is part of MXE.
# See index.html for further information.
#Author: Julien Michel <julien.michel@orfeo-toolbox.org>

diff -bur openjpeg-2.0.1.orig/src/lib/openjp2/openjpeg.c openjpeg-2.0.1/src/lib/openjp2/openjpeg.c
--- openjpeg-2.0.1.orig/src/lib/openjp2/openjpeg.c	2014-10-15 10:56:09.435396565 +0530
+++ openjpeg-2.0.1/src/lib/openjp2/openjpeg.c	2014-10-15 10:57:18.038964950 +0530
@@ -132,7 +132,7 @@
 #ifdef _WIN32
 #ifndef OPJ_STATIC
 BOOL APIENTRY
-DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
+DllMain(HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
 
 	OPJ_ARG_NOT_USED(lpReserved);
 	OPJ_ARG_NOT_USED(hModule);