From d135302c2f3a3ff86a64c6dd044c272f543557f7 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Wed, 5 Jul 2017 05:40:01 +0000 Subject: [PATCH] [MPR] Import Wine commit: - 26192671700360859cd8a0133dabcd96ec1a786b, Implement WNetConnectionDialog(). CORE-13516 svn path=/trunk/; revision=75285 --- reactos/dll/win32/mpr/wnet.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/mpr/wnet.c b/reactos/dll/win32/mpr/wnet.c index 7696304ba8a..62c66454a7b 100644 --- a/reactos/dll/win32/mpr/wnet.c +++ b/reactos/dll/win32/mpr/wnet.c @@ -2669,10 +2669,18 @@ DWORD WINAPI WNetGetUserW( LPCWSTR lpName, LPWSTR lpUserID, LPDWORD lpBufferSize */ DWORD WINAPI WNetConnectionDialog( HWND hwnd, DWORD dwType ) { - FIXME( "(%p, %08X): stub\n", hwnd, dwType ); + CONNECTDLGSTRUCTW conn_dlg; + NETRESOURCEW net_res; - SetLastError(WN_NO_NETWORK); - return WN_NO_NETWORK; + ZeroMemory(&conn_dlg, sizeof(conn_dlg)); + ZeroMemory(&net_res, sizeof(net_res)); + + conn_dlg.cbStructure = sizeof(conn_dlg); + conn_dlg.lpConnRes = &net_res; + conn_dlg.hwndOwner = hwnd; + net_res.dwType = dwType; + + return WNetConnectionDialog1W(&conn_dlg); } /********************************************************************* -- 2.17.1