Commit 599f58cc authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

secur32: Assign to structs instead of using memcpy.

parent bd0fec25
......@@ -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));
......
......@@ -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;
......
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