url: Fix the InetIsOffline() prototype.

Francois Gouget fgouget at free.fr
Fri Aug 31 19:42:51 CDT 2007


Add a skeleton intshcut.h header declaring InetIsOffline(), and use it.
---
 dlls/url/url.spec   |    2 +-
 dlls/url/url_main.c |    5 +++--
 include/Makefile.in |    1 +
 include/intshcut.h  |   36 ++++++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+), 3 deletions(-)
 create mode 100644 include/intshcut.h

diff --git a/dlls/url/url.spec b/dlls/url/url.spec
index 76981d8..43de3b6 100644
--- a/dlls/url/url.spec
+++ b/dlls/url/url.spec
@@ -6,7 +6,7 @@
 @ stub DummyEntryPointA
 @ stdcall FileProtocolHandler(long str long) FileProtocolHandlerA
 @ stdcall FileProtocolHandlerA(long str long)
-@ stdcall InetIsOffline()
+@ stdcall InetIsOffline(long)
 @ stub MIMEAssociationDialogA
 @ stub MIMEAssociationDialogW
 @ stub MailToProtocolHandler
diff --git a/dlls/url/url_main.c b/dlls/url/url_main.c
index 0d8b5eb..af960cf 100644
--- a/dlls/url/url_main.c
+++ b/dlls/url/url_main.c
@@ -23,6 +23,7 @@
 #include "winerror.h"
 #include "shellapi.h"
 #include "shlwapi.h"
+#include "intshcut.h"
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(url);
@@ -47,9 +48,9 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
  * InetIsOffline    (URL.@)
  *
  */
-BOOL WINAPI InetIsOffline(void)
+BOOL WINAPI InetIsOffline(DWORD flags)
 {
-    FIXME("stub!\n");
+    FIXME("(%08x): stub!\n", flags);
 
     return FALSE;
 }
diff --git a/include/Makefile.in b/include/Makefile.in
index 4607006..2557d2a 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -188,6 +188,7 @@ SRCDIR_INCLUDES = \
 	imagehlp.h \
 	imm.h \
 	initguid.h \
+	intshcut.h \
 	ipexport.h \
 	iphlpapi.h \
 	ipifcons.h \
diff --git a/include/intshcut.h b/include/intshcut.h
new file mode 100644
index 0000000..54c2f2d
--- /dev/null
+++ b/include/intshcut.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2007 Francois Gouget
+ *
+ * This library 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.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_INTSHCUT_H
+#define __WINE_INTSHCUT_H
+
+/* FIXME: #include <isguids.h> */
+
+#define INTSHCUTAPI
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BOOL        WINAPI InetIsOffline(DWORD);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  /* __WINE_INTSHCUT_H */
-- 
1.5.2.4




More information about the wine-patches mailing list