With this MR, now I can create documents in Word. Applied together with my other patches, we will have the 3 main apps of Microsoft Office working!
From: Daniel Tang danielzgtg.opensource@gmail.com
--- dlls/windows.networking/Makefile.in | 1 + dlls/windows.networking/main.c | 19 +++++++++++++++++++ .../windows.networking.spec | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/dlls/windows.networking/Makefile.in b/dlls/windows.networking/Makefile.in index 19ca237ec36..df8bc4819eb 100644 --- a/dlls/windows.networking/Makefile.in +++ b/dlls/windows.networking/Makefile.in @@ -1,4 +1,5 @@ MODULE = windows.networking.dll +IMPORTS = combase
C_SRCS = \ main.c diff --git a/dlls/windows.networking/main.c b/dlls/windows.networking/main.c index 3ac8a3042ab..0a25fc704ff 100644 --- a/dlls/windows.networking/main.c +++ b/dlls/windows.networking/main.c @@ -18,12 +18,31 @@
#include <windef.h> #include <winnt.h> +#include <winstring.h> #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
+const char *debugstr_hstring(HSTRING hstr) +{ + const WCHAR *str; + UINT32 len; + if (hstr && !((ULONG_PTR)hstr >> 16)) return "(invalid)"; + str = WindowsGetStringRawBuffer(hstr, &len); + return wine_dbgstr_wn(str, len); +} + HRESULT WINAPI SetSocketMediaStreamingMode(BOOL value) { FIXME("value %d stub!\n", value); return S_OK; } + +HRESULT WINAPI DllGetActivationFactory(HSTRING classid, void **factory) +{ + FIXME("class %s, factory %p.\n", debugstr_hstring(classid), factory); + + *factory = NULL; + + return CLASS_E_CLASSNOTAVAILABLE; +} diff --git a/dlls/windows.networking/windows.networking.spec b/dlls/windows.networking/windows.networking.spec index 8220ba93a55..fb5b6838dac 100644 --- a/dlls/windows.networking/windows.networking.spec +++ b/dlls/windows.networking/windows.networking.spec @@ -1,6 +1,6 @@ 1 stub @ @ stdcall -private DllCanUnloadNow() -@ stub DllGetActivationFactory +@ stdcall -private DllGetActivationFactory(ptr ptr) @ stub DllGetClassObject @ stdcall -private DllMain(long long ptr) @ stdcall -private DllRegisterServer()
Alex Henrie (@alexhenrie) commented about dlls/windows.networking/main.c:
#include <windef.h> #include <winnt.h> +#include <winstring.h> #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
+const char *debugstr_hstring(HSTRING hstr)
This function should be static, at least for now because it's not used in any other files.