Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init()
authorTor Lillqvist <tml@novell.com>
Wed, 12 Nov 2008 17:52:39 +0000 (17:52 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 12 Nov 2008 17:52:39 +0000 (17:52 +0000)
commit2f575b95ac14f34d0f17efd5de69f8d1b37e7bff
treeb142eb7e2e7747068338e2cb7f840408a2659280
parentd442b590225463d9a8c96a11095d7bf63ba9dde4
Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init()

2008-11-12  Tor Lillqvist  <tml@novell.com>

Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init()

* win32/gwinhttpvfs.h: Move the set of function pointers to
winhttp.dll into a separate struct GWinHttpDllFuncs. Just have a
pointer to that in the GWinHttpVfsClass.

* win32/gwinhttpvfs.c: Move the lookup of functions from
winhttp.dll into a function of its own, that stores the pointers
in a separate GWinHttpDllFuncs variable. Add two bookeeping
booleans lookup_done and funcs_found.

Don't call g_io_extension_point_implement() to register the
winhttp extension unless winhttp.dll has been successfully loaded
and the required functions found in it.

* win32/gwinhttp*.c: Adjust calls of the functions looked up from
winhttp.dll correspondingly.

svn path=/trunk/; revision=7648
gio/ChangeLog
gio/win32/gwinhttpfile.c
gio/win32/gwinhttpfileinputstream.c
gio/win32/gwinhttpfileoutputstream.c
gio/win32/gwinhttpvfs.c
gio/win32/gwinhttpvfs.h