shared-macros.mk: simplify java settings
[oi-userland.git] / components / library / trousers / patches / tcs_tcs_caps.c.patch
blob83ec6a97b3b34d55a87664d88a59e12ee4513ae6
1 --- trousers-0.3.11.2/src/tcs/tcs_caps.c.orig
2 +++ trousers-0.3.11.2/src/tcs/tcs_caps.c
3 @@ -149,6 +149,7 @@
5 TSS_RESULT result;
6 UINT32 subCap, rv = 0;
7 + UINT32 manuf;
9 if ((result = get_current_version(&p->version)))
10 goto err;
11 @@ -181,8 +182,9 @@
13 UINT32ToArray(TPM_CAP_PROP_MANUFACTURER, (BYTE *)&subCap);
14 if ((result = get_cap_uint32(TCPA_CAP_PROPERTY, (BYTE *)&subCap, sizeof(UINT32),
15 - (UINT32 *)&p->manufacturer)))
16 + (UINT32 *)&manuf)))
17 goto err;
18 + (void) memcpy(p->manufacturer, &manuf, sizeof (UINT32));
20 result = get_max_auths(&(p->num_auths));