Author: pschweitzer
Date: Wed Jul 5 05:40:01 2017
New Revision: 75285
URL:
http://svn.reactos.org/svn/reactos?rev=75285&view=rev
Log:
[MPR]
Import Wine commit:
- 26192671700360859cd8a0133dabcd96ec1a786b, Implement WNetConnectionDialog().
CORE-13516
Modified:
trunk/reactos/dll/win32/mpr/wnet.c
Modified: trunk/reactos/dll/win32/mpr/wnet.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mpr/wnet.c?rev=7…
==============================================================================
--- trunk/reactos/dll/win32/mpr/wnet.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mpr/wnet.c [iso-8859-1] Wed Jul 5 05:40:01 2017
@@ -2669,10 +2669,18 @@
*/
DWORD WINAPI WNetConnectionDialog( HWND hwnd, DWORD dwType )
{
- FIXME( "(%p, %08X): stub\n", hwnd, dwType );
-
- SetLastError(WN_NO_NETWORK);
- return WN_NO_NETWORK;
+ CONNECTDLGSTRUCTW conn_dlg;
+ NETRESOURCEW net_res;
+
+ 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);
}
/*********************************************************************