diff options
| author | 2014-06-05 02:16:08 +0200 | |
|---|---|---|
| committer | 2014-06-05 02:16:08 +0200 | |
| commit | b2c9eede175c2e4ea054fbc0e4514560c2bab39c (patch) | |
| tree | 3d9708c6be092ffca1733c8cf44674608a807cca /src | |
| parent | 179bd812736f4b5ffea66a0e6ea42eb00a84a0c8 (diff) | |
| download | libimobiledevice-b2c9eede175c2e4ea054fbc0e4514560c2bab39c.tar.gz libimobiledevice-b2c9eede175c2e4ea054fbc0e4514560c2bab39c.tar.bz2 | |
idevice: win32: Use correct signature for DllMain()
Diffstat (limited to 'src')
| -rw-r--r-- | src/idevice.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/idevice.c b/src/idevice.c index eed02fc..3b903c0 100644 --- a/src/idevice.c +++ b/src/idevice.c | |||
| @@ -31,7 +31,6 @@ | |||
| 31 | 31 | ||
| 32 | #ifdef WIN32 | 32 | #ifdef WIN32 |
| 33 | #include <windows.h> | 33 | #include <windows.h> |
| 34 | int APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved); | ||
| 35 | #endif | 34 | #endif |
| 36 | 35 | ||
| 37 | #include <usbmuxd.h> | 36 | #include <usbmuxd.h> |
| @@ -101,7 +100,7 @@ static thread_once_t init_once = THREAD_ONCE_INIT; | |||
| 101 | static thread_once_t deinit_once = THREAD_ONCE_INIT; | 100 | static thread_once_t deinit_once = THREAD_ONCE_INIT; |
| 102 | 101 | ||
| 103 | #ifdef WIN32 | 102 | #ifdef WIN32 |
| 104 | int APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved) | 103 | BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved) |
| 105 | { | 104 | { |
| 106 | switch (dwReason) { | 105 | switch (dwReason) { |
| 107 | case DLL_PROCESS_ATTACH: | 106 | case DLL_PROCESS_ATTACH: |
