mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[WINTRUST] Sync with Wine Staging 2.2. CORE-12823
e141d4a wintrust: Use return value of sprintf() instead of calling strlen(). svn path=/trunk/; revision=74199
This commit is contained in:
parent
9883b9f952
commit
cc68e066fd
|
@ -1883,10 +1883,9 @@ static BOOL WINAPI CRYPT_AsnDecodeOidIgnoreTag(DWORD dwCertEncodingType,
|
|||
LPSTR pszObjId = *(LPSTR *)pvStructInfo;
|
||||
|
||||
*pszObjId = 0;
|
||||
sprintf(pszObjId, "%d.%d", pbEncoded[1 + lenBytes] / 40,
|
||||
pszObjId += sprintf(pszObjId, "%d.%d", pbEncoded[1 + lenBytes] / 40,
|
||||
pbEncoded[1 + lenBytes] - (pbEncoded[1 + lenBytes] /
|
||||
40) * 40);
|
||||
pszObjId += strlen(pszObjId);
|
||||
for (ptr = pbEncoded + 2 + lenBytes; ret &&
|
||||
ptr - pbEncoded - 1 - lenBytes < dataLen; )
|
||||
{
|
||||
|
@ -1901,8 +1900,7 @@ static BOOL WINAPI CRYPT_AsnDecodeOidIgnoreTag(DWORD dwCertEncodingType,
|
|||
}
|
||||
val <<= 7;
|
||||
val |= *ptr++;
|
||||
sprintf(pszObjId, ".%d", val);
|
||||
pszObjId += strlen(pszObjId);
|
||||
pszObjId += sprintf(pszObjId, ".%d", val);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -206,7 +206,7 @@ reactos/dll/win32/winmm # Forked at Wine-20050628
|
|||
reactos/dll/win32/winmm/midimap # Forked at Wine-20050628
|
||||
reactos/dll/win32/winmm/wavemap # Forked at Wine-20050628
|
||||
reactos/dll/win32/winscard # Synced to WineStaging-2.2
|
||||
reactos/dll/win32/wintrust # Synced to WineStaging-1.9.23
|
||||
reactos/dll/win32/wintrust # Synced to WineStaging-2.2
|
||||
reactos/dll/win32/wldap32 # Synced to WineStaging-2.2
|
||||
reactos/dll/win32/wmi # Synced to WineStaging-1.9.11
|
||||
reactos/dll/win32/wmiutils # Synced to WineStaging-1.9.11
|
||||
|
|
Loading…
Reference in a new issue