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

This commit is contained in:
Hans Leidekker 2013-11-20 10:32:12 +01:00 committed by Alexandre Julliard
parent d9723d2bed
commit 466f435a3c
1 changed files with 4 additions and 1 deletions

View File

@ -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;