Commit 466f435a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

netapi32: The last parameter to Samba's NetShareAdd is not optional.

parent d9723d2b
......@@ -782,8 +782,11 @@ static NET_API_STATUS share_add( LMSTR servername, DWORD level, LPBYTE buf, LPDW
status = share_info_to_samba( level, buf, &info );
if (!status)
{
status = pNetShareAdd( server, level, info, parm_err );
unsigned int err;
status = pNetShareAdd( server, level, info, &err );
HeapFree( GetProcessHeap(), 0, info );
if (parm_err) *parm_err = err;
}
HeapFree( GetProcessHeap(), 0, server );
return status;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment