winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
November 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
910 discussions
Start a n
N
ew thread
Hans Leidekker : usp10: Add a stub implementation of ScriptApplyLogicalWidth.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 7714a3f79834b2a6ced6dfd8cdedb92eae891b27 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7714a3f79834b2a6ced6dfd8c…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Sat Nov 21 13:07:36 2009 +0100 usp10: Add a stub implementation of ScriptApplyLogicalWidth. --- dlls/usp10/usp10.c | 34 ++++++++++++++++++++++++++++++++++ dlls/usp10/usp10.spec | 2 +- 2 files changed, 35 insertions(+), 1 deletions(-) diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index e1c79e6..16f575b 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -1794,3 +1794,37 @@ HRESULT WINAPI ScriptGetLogicalWidths(const SCRIPT_ANALYSIS *sa, int nbchars, in for (i = 0; i < nbchars; i++) widths[i] = glyph_width[i]; return S_OK; } + +/*********************************************************************** + * ScriptApplyLogicalWidth (USP10.@) + * + * Generate glyph advance widths. + * + * PARAMS + * dx [I] Array of logical advance widths. + * num_chars [I] Number of characters. + * num_glyphs [I] Number of glyphs. + * log_clust [I] Array of logical clusters. + * sva [I] Visual attributes. + * advance [I] Array of glyph advance widths. + * sa [I] Script analysis. + * abc [I/O] Summed ABC widths. + * justify [O] Array of glyph advance widths. + * + * RETURNS + * Success: S_OK + * Failure: a non-zero HRESULT. + */ +HRESULT WINAPI ScriptApplyLogicalWidth(const int *dx, int num_chars, int num_glyphs, + const WORD *log_clust, const SCRIPT_VISATTR *sva, + const int *advance, const SCRIPT_ANALYSIS *sa, + ABC *abc, int *justify) +{ + int i; + + FIXME("(%p, %d, %d, %p, %p, %p, %p, %p, %p)\n", + dx, num_chars, num_glyphs, log_clust, sva, advance, sa, abc, justify); + + for (i = 0; i < num_chars; i++) justify[i] = advance[i]; + return S_OK; +} diff --git a/dlls/usp10/usp10.spec b/dlls/usp10/usp10.spec index ac1506e..54137f2 100644 --- a/dlls/usp10/usp10.spec +++ b/dlls/usp10/usp10.spec @@ -1,6 +1,6 @@ @ stub LpkPresent @ stdcall ScriptApplyDigitSubstitution(ptr ptr ptr) -@ stub ScriptApplyLogicalWidth +@ stdcall ScriptApplyLogicalWidth(ptr long long ptr ptr ptr ptr ptr ptr) @ stdcall ScriptBreak(ptr long ptr ptr) @ stdcall ScriptCPtoX(long long long long ptr ptr ptr ptr ptr) @ stdcall ScriptCacheGetHeight(ptr ptr ptr)
1
0
0
0
Juan Lang : crypt32: Only match RDN attributes whose lengths are identical.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: b2ab45b78b695b3e3edd36ed39c1e373ccd80c93 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b2ab45b78b695b3e3edd36ed3…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Nov 20 15:37:46 2009 -0800 crypt32: Only match RDN attributes whose lengths are identical. --- dlls/crypt32/cert.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index f91adc1..a247570 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -1853,7 +1853,10 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name, (LPCWSTR)name->rgRDN[i].rgRDNAttr[j].Value.pbData; LPCWSTR attrStr = (LPCWSTR)attr->Value.pbData; - if (dwFlags & CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG) + if (attr->Value.cbData != + name->rgRDN[i].rgRDNAttr[j].Value.cbData) + match = FALSE; + else if (dwFlags & CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG) match = !strncmpiW(nameStr, attrStr, attr->Value.cbData / sizeof(WCHAR)); else @@ -1870,7 +1873,10 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name, (LPCSTR)name->rgRDN[i].rgRDNAttr[j].Value.pbData; LPCSTR attrStr = (LPCSTR)attr->Value.pbData; - if (dwFlags & CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG) + if (attr->Value.cbData != + name->rgRDN[i].rgRDNAttr[j].Value.cbData) + match = FALSE; + else if (dwFlags & CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG) match = !strncasecmp(nameStr, attrStr, attr->Value.cbData); else
1
0
0
0
Juan Lang : crypt32: When searching for a CRL by the AKI extension, the extension has to be decoded to match.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 8e51a866b72494b402c9df486c8843b7ed49754d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8e51a866b72494b402c9df486…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Nov 20 15:18:23 2009 -0800 crypt32: When searching for a CRL by the AKI extension, the extension has to be decoded to match. --- dlls/crypt32/crl.c | 67 ++++++++++++++++++++++++++++++++++++++------- dlls/crypt32/tests/crl.c | 1 - 2 files changed, 56 insertions(+), 12 deletions(-) diff --git a/dlls/crypt32/crl.c b/dlls/crypt32/crl.c index b8e8182..a24e6ad 100644 --- a/dlls/crypt32/crl.c +++ b/dlls/crypt32/crl.c @@ -123,26 +123,71 @@ static BOOL compare_crl_issued_by(PCCRL_CONTEXT pCrlContext, DWORD dwType, CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT, (void *)issuer, 0, NULL); if (ret && (dwFlags & CRL_FIND_ISSUED_BY_AKI_FLAG)) { - PCERT_EXTENSION aki = CertFindExtension( + PCERT_EXTENSION ext = CertFindExtension( szOID_AUTHORITY_KEY_IDENTIFIER2, pCrlContext->pCrlInfo->cExtension, pCrlContext->pCrlInfo->rgExtension); - if (aki) + if (ext) { - CERT_EXTENSION *ski; + CERT_AUTHORITY_KEY_ID2_INFO *info; + DWORD size; - if ((ski = CertFindExtension(szOID_SUBJECT_KEY_IDENTIFIER, - issuer->pCertInfo->cExtension, - issuer->pCertInfo->rgExtension))) + if ((ret = CryptDecodeObjectEx(X509_ASN_ENCODING, + X509_AUTHORITY_KEY_ID2, ext->Value.pbData, ext->Value.cbData, + CRYPT_DECODE_ALLOC_FLAG, NULL, &info, &size))) { - if (aki->Value.cbData == ski->Value.cbData) - ret = !memcmp(aki->Value.pbData, ski->Value.pbData, - aki->Value.cbData); + if (info->AuthorityCertIssuer.cAltEntry && + info->AuthorityCertSerialNumber.cbData) + { + PCERT_ALT_NAME_ENTRY directoryName = NULL; + DWORD i; + + for (i = 0; !directoryName && + i < info->AuthorityCertIssuer.cAltEntry; i++) + if (info->AuthorityCertIssuer.rgAltEntry[i]. + dwAltNameChoice == CERT_ALT_NAME_DIRECTORY_NAME) + directoryName = + &info->AuthorityCertIssuer.rgAltEntry[i]; + if (directoryName) + { + ret = CertCompareCertificateName( + issuer->dwCertEncodingType, + &issuer->pCertInfo->Subject, + &directoryName->u.DirectoryName); + if (ret) + ret = CertCompareIntegerBlob( + &issuer->pCertInfo->SerialNumber, + &info->AuthorityCertSerialNumber); + } + else + { + FIXME("no supported name type in authority key id2\n"); + ret = FALSE; + } + } + else if (info->KeyId.cbData) + { + if ((ext = CertFindExtension( + szOID_SUBJECT_KEY_IDENTIFIER, + issuer->pCertInfo->cExtension, + issuer->pCertInfo->rgExtension))) + { + if (info->KeyId.cbData == ext->Value.cbData) + ret = !memcmp(info->KeyId.pbData, + ext->Value.pbData, info->KeyId.cbData); + else + ret = FALSE; + } + else + ret = FALSE; + } else + { + FIXME("unsupported value for AKI extension\n"); ret = FALSE; + } + LocalFree(info); } - else - ret = FALSE; } /* else: a CRL without an AKI matches any cert */ } diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c index 26033c2..bb62219 100644 --- a/dlls/crypt32/tests/crl.c +++ b/dlls/crypt32/tests/crl.c @@ -702,7 +702,6 @@ static void testFindCRL(void) revoked_count++; } } while (context); - todo_wine ok(count == 0 || broken(count == 1 /* Win9x */), "expected 0 matching CRLs, got %d\n", count); ok(revoked_count == 0, "expected 0 matching CRL entries, got %d\n",
1
0
0
0
Juan Lang : crypt32/tests: Fix a typo.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 7dee971809ad5c80d6cbf314af971aaf9d0134dc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7dee971809ad5c80d6cbf314a…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Nov 20 14:47:53 2009 -0800 crypt32/tests: Fix a typo. --- dlls/crypt32/tests/crl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c index abf2fd0..26033c2 100644 --- a/dlls/crypt32/tests/crl.c +++ b/dlls/crypt32/tests/crl.c @@ -704,7 +704,7 @@ static void testFindCRL(void) } while (context); todo_wine ok(count == 0 || broken(count == 1 /* Win9x */), - "expected 1 matching CRLs, got %d\n", count); + "expected 0 matching CRLs, got %d\n", count); ok(revoked_count == 0, "expected 0 matching CRL entries, got %d\n", revoked_count); count = revoked_count = 0;
1
0
0
0
Juan Lang : crypt32: Finding a CRL issued by a cert should compare the cert 's subject, not its issuer.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 8646c39bdbe8b2ca451059382c4ff2316a92ca74 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8646c39bdbe8b2ca451059382…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Nov 20 14:46:53 2009 -0800 crypt32: Finding a CRL issued by a cert should compare the cert's subject, not its issuer. --- dlls/crypt32/crl.c | 2 +- dlls/crypt32/tests/crl.c | 2 -- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/dlls/crypt32/crl.c b/dlls/crypt32/crl.c index 9e7fe9d..b8e8182 100644 --- a/dlls/crypt32/crl.c +++ b/dlls/crypt32/crl.c @@ -115,7 +115,7 @@ static BOOL compare_crl_issued_by(PCCRL_CONTEXT pCrlContext, DWORD dwType, PCCERT_CONTEXT issuer = pvPara; ret = CertCompareCertificateName(issuer->dwCertEncodingType, - &issuer->pCertInfo->Issuer, &pCrlContext->pCrlInfo->Issuer); + &issuer->pCertInfo->Subject, &pCrlContext->pCrlInfo->Issuer); if (ret && (dwFlags & CRL_FIND_ISSUED_BY_SIGNATURE_FLAG)) ret = CryptVerifyCertificateSignatureEx(0, issuer->dwCertEncodingType, diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c index cdb327f..abf2fd0 100644 --- a/dlls/crypt32/tests/crl.c +++ b/dlls/crypt32/tests/crl.c @@ -651,11 +651,9 @@ static void testFindCRL(void) revoked_count++; } } while (context); - todo_wine { ok(count == 0, "expected 0 matching CRLs, got %d\n", count); ok(revoked_count == 0, "expected 0 matching CRL entries, got %d\n", revoked_count); - } count = revoked_count = 0; do { context = pCertFindCRLInStore(store, 0, 0, CRL_FIND_ISSUED_BY,
1
0
0
0
Juan Lang : crypt32/tests: Test one more certificate against the Verisign CRL.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 6bc8237c633e1153ce2a69c5ee068fe48d74c59f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6bc8237c633e1153ce2a69c5e…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Nov 20 14:31:28 2009 -0800 crypt32/tests: Test one more certificate against the Verisign CRL. --- dlls/crypt32/tests/crl.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c index 5ae6bf6..cdb327f 100644 --- a/dlls/crypt32/tests/crl.c +++ b/dlls/crypt32/tests/crl.c @@ -1019,7 +1019,7 @@ static void testIsValidCRLForCert(void) CertFreeCRLContext(crl); - /* And again, with a real CRL, the CRL is valid for both certs. */ + /* And again, with a real CRL, the CRL is valid for all three certs. */ crl = CertCreateCRLContext(X509_ASN_ENCODING, verisignCRL, sizeof(verisignCRL)); ok(crl != NULL, "CertCreateCRLContext failed: %08x\n", GetLastError()); @@ -1028,6 +1028,8 @@ static void testIsValidCRLForCert(void) ok(ret, "CertIsValidCRLForCertificate failed: %08x\n", GetLastError()); ret = pCertIsValidCRLForCertificate(cert2, crl, 0, NULL); ok(ret, "CertIsValidCRLForCertificate failed: %08x\n", GetLastError()); + ret = pCertIsValidCRLForCertificate(cert3, crl, 0, NULL); + ok(ret, "CertIsValidCRLForCertificate failed: %08x\n", GetLastError()); CertFreeCRLContext(crl); @@ -1046,6 +1048,8 @@ static void testIsValidCRLForCert(void) ok(ret, "CertIsValidCRLForCertificate failed: %08x\n", GetLastError()); ret = pCertIsValidCRLForCertificate(cert2, crl, 0, NULL); ok(ret, "CertIsValidCRLForCertificate failed: %08x\n", GetLastError()); + ret = pCertIsValidCRLForCertificate(cert3, crl, 0, NULL); + ok(ret, "CertIsValidCRLForCertificate failed: %08x\n", GetLastError()); CertFreeCRLContext(crl);
1
0
0
0
Juan Lang : crypt32/tests: Fix a typo.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 22206b909a836505eefda401b8687e550d364b53 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=22206b909a836505eefda401b…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Nov 20 14:30:29 2009 -0800 crypt32/tests: Fix a typo. --- dlls/crypt32/tests/crl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c index 4a96a46..5ae6bf6 100644 --- a/dlls/crypt32/tests/crl.c +++ b/dlls/crypt32/tests/crl.c @@ -1148,8 +1148,8 @@ static void testVerifyCRLRevocation(void) CertFreeCRLContext(crl); /* Check against CRL with different issuer and entry for the cert */ - crl = CertCreateCRLContext(X509_ASN_ENCODING, v1CRLWithIssuerAndEntry, - sizeof(v1CRLWithIssuerAndEntry)); + crl = CertCreateCRLContext(X509_ASN_ENCODING, crlWithDifferentIssuer, + sizeof(crlWithDifferentIssuer)); ok(crl != NULL, "CertCreateCRLContext failed: %08x\n", GetLastError()); ret = CertVerifyCRLRevocation(X509_ASN_ENCODING, cert->pCertInfo, 1, (PCRL_INFO *)&crl->pCrlInfo);
1
0
0
0
Alexandre Julliard : widl: Use INT64 instead of __int64 in generated headers.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 98de3950b1c1bc65d45d18e437d4b43d4d6e1482 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=98de3950b1c1bc65d45d18e43…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Nov 21 14:24:02 2009 +0100 widl: Use INT64 instead of __int64 in generated headers. --- tools/widl/header.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/tools/widl/header.c b/tools/widl/header.c index e87a44e..c8b9613 100644 --- a/tools/widl/header.c +++ b/tools/widl/header.c @@ -254,6 +254,7 @@ void write_type_left(FILE *h, type_t *t, int declonly) break; case TYPE_BASIC: if (type_basic_get_type(t) != TYPE_BASIC_INT32 && + type_basic_get_type(t) != TYPE_BASIC_INT64 && type_basic_get_type(t) != TYPE_BASIC_HYPER) { if (type_basic_get_sign(t) < 0) fprintf(h, "signed "); @@ -264,7 +265,6 @@ void write_type_left(FILE *h, type_t *t, int declonly) case TYPE_BASIC_INT8: fprintf(h, "small"); break; case TYPE_BASIC_INT16: fprintf(h, "short"); break; case TYPE_BASIC_INT: fprintf(h, "int"); break; - case TYPE_BASIC_INT64: fprintf(h, "__int64"); break; case TYPE_BASIC_INT3264: fprintf(h, "__int3264"); break; case TYPE_BASIC_BYTE: fprintf(h, "byte"); break; case TYPE_BASIC_CHAR: fprintf(h, "char"); break; @@ -279,6 +279,12 @@ void write_type_left(FILE *h, type_t *t, int declonly) else fprintf(h, "LONG"); break; + case TYPE_BASIC_INT64: + if (type_basic_get_sign(t) > 0) + fprintf(h, "UINT64"); + else + fprintf(h, "INT64"); + break; case TYPE_BASIC_HYPER: if (type_basic_get_sign(t) > 0) fprintf(h, "MIDL_uhyper");
1
0
0
0
Alexandre Julliard : include: Define hyper to INT64 instead of __int64 to get the correct alignment
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: a717d2d2840123872c17e00900caad105d5bd0fd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a717d2d2840123872c17e0090…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Nov 21 14:23:47 2009 +0100 include: Define hyper to INT64 instead of __int64 to get the correct alignment --- include/rpcndr.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rpcndr.h b/include/rpcndr.h index 81baa87..5ab0685 100644 --- a/include/rpcndr.h +++ b/include/rpcndr.h @@ -97,8 +97,8 @@ extern "C" { #define small char typedef unsigned char byte; -#define hyper __int64 -#define MIDL_uhyper unsigned __int64 +typedef INT64 hyper; +typedef UINT64 MIDL_uhyper; typedef unsigned char boolean; #define __RPC_CALLEE WINAPI
1
0
0
0
Alexandre Julliard : include: Specify explicit alignment for __int64 types.
by Alexandre Julliard
23 Nov '09
23 Nov '09
Module: wine Branch: master Commit: 7f69436ea874ad7c0b39f0f60e07d26da3dcb353 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7f69436ea874ad7c0b39f0f60…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Nov 21 14:23:22 2009 +0100 include: Specify explicit alignment for __int64 types. --- dlls/msvcrt/msvcrt.h | 12 ++++++------ include/msvcrt/crtdefs.h | 12 +++++++++++- include/msvcrt/io.h | 4 ++-- include/msvcrt/stdio.h | 2 +- include/msvcrt/wchar.h | 2 +- include/ws2def.h | 2 +- 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/dlls/msvcrt/msvcrt.h b/dlls/msvcrt/msvcrt.h index 337a17c..1de0c7b 100644 --- a/dlls/msvcrt/msvcrt.h +++ b/dlls/msvcrt/msvcrt.h @@ -64,8 +64,8 @@ typedef unsigned int MSVCRT__dev_t; typedef int MSVCRT__off_t; typedef int MSVCRT_clock_t; typedef int MSVCRT___time32_t; -typedef __int64 MSVCRT___time64_t; -typedef __int64 MSVCRT_fpos_t; +typedef __int64 DECLSPEC_ALIGN(8) MSVCRT___time64_t; +typedef __int64 DECLSPEC_ALIGN(8) MSVCRT_fpos_t; typedef void (*__cdecl MSVCRT_terminate_handler)(void); typedef void (*__cdecl MSVCRT_terminate_function)(void); @@ -316,7 +316,7 @@ struct MSVCRT__finddata32i64_t { MSVCRT___time32_t time_create; MSVCRT___time32_t time_access; MSVCRT___time32_t time_write; - __int64 size; + __int64 DECLSPEC_ALIGN(8) size; char name[260]; }; @@ -334,7 +334,7 @@ struct MSVCRT__finddata64_t { MSVCRT___time64_t time_create; MSVCRT___time64_t time_access; MSVCRT___time64_t time_write; - __int64 size; + __int64 DECLSPEC_ALIGN(8) size; char name[260]; }; @@ -352,7 +352,7 @@ struct MSVCRT__wfinddata32i64_t { MSVCRT___time32_t time_create; MSVCRT___time32_t time_access; MSVCRT___time32_t time_write; - __int64 size; + __int64 DECLSPEC_ALIGN(8) size; MSVCRT_wchar_t name[260]; }; @@ -370,7 +370,7 @@ struct MSVCRT__wfinddata64_t { MSVCRT___time64_t time_create; MSVCRT___time64_t time_access; MSVCRT___time64_t time_write; - __int64 size; + __int64 DECLSPEC_ALIGN(8) size; MSVCRT_wchar_t name[260]; }; diff --git a/include/msvcrt/crtdefs.h b/include/msvcrt/crtdefs.h index 2a101a9..61116e9 100644 --- a/include/msvcrt/crtdefs.h +++ b/include/msvcrt/crtdefs.h @@ -80,6 +80,16 @@ # endif #endif +#ifndef DECLSPEC_ALIGN +# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS) +# define DECLSPEC_ALIGN(x) __declspec(align(x)) +# elif defined(__GNUC__) +# define DECLSPEC_ALIGN(x) __attribute__((aligned(x))) +# else +# define DECLSPEC_ALIGN(x) +# endif +#endif + #ifndef _MSVCRT_LONG_DEFINED #define _MSVCRT_LONG_DEFINED /* we need 32-bit longs even on 64-bit */ @@ -129,7 +139,7 @@ typedef __msvcrt_long __time32_t; #endif #ifndef _TIME64_T_DEFINED -typedef __int64 __time64_t; +typedef __int64 DECLSPEC_ALIGN(8) __time64_t; #define _TIME64_T_DEFINED #endif diff --git a/include/msvcrt/io.h b/include/msvcrt/io.h index e15dff1..c7ba9ab 100644 --- a/include/msvcrt/io.h +++ b/include/msvcrt/io.h @@ -44,7 +44,7 @@ struct _finddatai64_t time_t time_create; time_t time_access; time_t time_write; - __int64 size; + __int64 DECLSPEC_ALIGN(8) size; char name[260]; }; #endif /* _FINDDATA_T_DEFINED */ @@ -65,7 +65,7 @@ struct _wfinddatai64_t { time_t time_create; time_t time_access; time_t time_write; - __int64 size; + __int64 DECLSPEC_ALIGN(8) size; wchar_t name[260]; }; #endif /* _WFINDDATA_T_DEFINED */ diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h index 1b3872c..b309ebb 100644 --- a/include/msvcrt/stdio.h +++ b/include/msvcrt/stdio.h @@ -72,7 +72,7 @@ typedef struct _iobuf #endif /* _FILE_DEFINED */ #ifndef _FPOS_T_DEFINED -typedef __int64 fpos_t; +typedef __int64 DECLSPEC_ALIGN(8) fpos_t; #define _FPOS_T_DEFINED #endif diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h index fe76166..66d3a81 100644 --- a/include/msvcrt/wchar.h +++ b/include/msvcrt/wchar.h @@ -111,7 +111,7 @@ struct _wfinddatai64_t { time_t time_create; time_t time_access; time_t time_write; - __int64 size; + __int64 DECLSPEC_ALIGN(8) size; wchar_t name[260]; }; diff --git a/include/ws2def.h b/include/ws2def.h index f2f7223..585647b 100644 --- a/include/ws2def.h +++ b/include/ws2def.h @@ -58,7 +58,7 @@ typedef struct _CSADDR_INFO { typedef struct WS(sockaddr_storage) { short ss_family; char __ss_pad1[WS(_SS_PAD1SIZE)]; - __int64 __ss_align; + __int64 DECLSPEC_ALIGN(8) __ss_align; char __ss_pad2[WS(_SS_PAD2SIZE)]; } SOCKADDR_STORAGE, *PSOCKADDR_STORAGE, *LPSOCKADDR_STORAGE;
1
0
0
0
← Newer
1
...
14
15
16
17
18
19
20
...
91
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Results per page:
10
25
50
100
200