Module: wine Branch: master Commit: 26192671700360859cd8a0133dabcd96ec1a786b URL: http://source.winehq.org/git/wine.git/?a=commit;h=26192671700360859cd8a0133d...
Author: Pierre Schweitzer pierre@reactos.org Date: Sun Jul 2 11:52:59 2017 +0200
mpr: Implement WNetConnectionDialog().
Signed-off-by: Pierre Schweitzer pierre@reactos.org Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/mpr/wnet.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c index bfe6275..7b24693 100644 --- a/dlls/mpr/wnet.c +++ b/dlls/mpr/wnet.c @@ -2440,10 +2440,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); }
/*********************************************************************