summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/dllmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/dllmain.c')
-rw-r--r--src/pulsecore/dllmain.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pulsecore/dllmain.c b/src/pulsecore/dllmain.c
index b86bf04f..d2de73d9 100644
--- a/src/pulsecore/dllmain.c
+++ b/src/pulsecore/dllmain.c
@@ -1,11 +1,11 @@
-/* $Id$ */
-
/***
This file is part of PulseAudio.
+ Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
+
PulseAudio is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2 of the License,
+ by the Free Software Foundation; either version 2.1 of the License,
or (at your option) any later version.
PulseAudio is distributed in the hope that it will be useful, but
@@ -27,11 +27,11 @@
#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
#include <windows.h>
+#include <winsock2.h>
-extern pa_set_root(HANDLE handle);
+extern char *pa_win32_get_toplevel(HANDLE handle);
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
WSADATA data;
@@ -39,7 +39,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
- if (!pa_set_root(hinstDLL))
+ if (!pa_win32_get_toplevel(hinstDLL))
return FALSE;
WSAStartup(MAKEWORD(2, 0), &data);
break;