secur32: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-15 23:25:42 +00:00 committed by Alexandre Julliard
parent bd0fec2511
commit 599f58cc7c
2 changed files with 3 additions and 3 deletions

View File

@ -745,7 +745,7 @@ SECURITY_STATUS WINAPI EnumerateSecurityPackagesW(PULONG pcPackages,
{
PSecPkgInfoW pkgInfo = *ppPackageInfo + i++;
memcpy(pkgInfo, &package->infoW, sizeof(SecPkgInfoW));
*pkgInfo = package->infoW;
if (package->infoW.Name)
{
TRACE("Name[%d] = %s\n", i - 1, debugstr_w(package->infoW.Name));

View File

@ -45,7 +45,7 @@ static SECURITY_STATUS SECUR32_makeSecHandle(PSecHandle phSec,
if (newSec)
{
memcpy(newSec, realHandle, sizeof(*realHandle));
*newSec = *realHandle;
phSec->dwUpper = (ULONG_PTR)package;
phSec->dwLower = (ULONG_PTR)newSec;
ret = SEC_E_OK;
@ -778,7 +778,7 @@ SECURITY_STATUS WINAPI QuerySecurityPackageInfoW(SEC_WCHAR *pszPackageName,
PWSTR nextString = (PWSTR)((PBYTE)*ppPackageInfo +
sizeof(SecPkgInfoW));
memcpy(*ppPackageInfo, &package->infoW, sizeof(package->infoW));
**ppPackageInfo = package->infoW;
if (package->infoW.Name)
{
(*ppPackageInfo)->Name = nextString;