Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-08-21 22:15:50 +0400
committerDJ Delorie <dj@redhat.com>2000-08-21 22:15:50 +0400
commitd3bff3131f70b9c76415c508ac2a01efb87a1bcb (patch)
treed235ce475892af1f86b6edac2257727b0d5d247c
parent20ffb3ee16e16ed35c817de423e6cc80cb346d35 (diff)
* include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): hinstance,
not handle. (reverse of previous diff)
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/include/cygwin/cygwin_dll.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 9257ac3c9..03dccdffc 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,7 +1,7 @@
2000-08-21 DJ Delorie <dj@redhat.com>
- * include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): handle,
- not hinstance.
+ * include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): hinstance,
+ not handle.
Fri Aug 18 11:11:00 2000 Corinna Vinschen <corinna@vinschen.de>
diff --git a/winsup/cygwin/include/cygwin/cygwin_dll.h b/winsup/cygwin/include/cygwin/cygwin_dll.h
index 18378da5e..88679b0c9 100644
--- a/winsup/cygwin/include/cygwin/cygwin_dll.h
+++ b/winsup/cygwin/include/cygwin/cygwin_dll.h
@@ -24,13 +24,13 @@ details. */
#define DECLARE_CYGWIN_DLL(Entry) \
\
CDECL_BEGIN \
- int WINAPI Entry (HANDLE h, DWORD reason, void *ptr); \
+ int WINAPI Entry (HINSTANCE h, DWORD reason, void *ptr); \
typedef int (*mainfunc) (int, char **, char **); \
extern int cygwin_attach_dll (HMODULE, mainfunc); \
extern void cygwin_detach_dll (DWORD); \
CDECL_END \
\
-static HANDLE storedHandle; \
+static HINSTANCE storedHandle; \
static DWORD storedReason; \
static void* storedPtr; \
\
@@ -41,7 +41,7 @@ static int __dllMain (int a, char **b, char **c) \
\
static DWORD dll_index; \
\
-int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr) \
+int WINAPI _cygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr) \
{ \
int ret; \
ret = 1; \
@@ -86,7 +86,7 @@ int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr) \
} \
\
/* OBSOLETE: This is only provided for source level compatibility. */ \
-int WINAPI _cygwin_noncygwin_dll_entry (HANDLE h, DWORD reason, void *ptr) \
+int WINAPI _cygwin_noncygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr) \
{ \
return _cygwin_dll_entry (h, reason, ptr); \
} \