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
July 2006
----- 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
5 participants
857 discussions
Start a n
N
ew thread
Robert Shearman : msi: The szLogFile parameter of MsiEnableLogW is optional , so handle the case of it being NULL.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: c0596e0ae91ee942dac6c5a8891000093c9aa3ae URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c0596e0ae91ee942dac6c5a…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:45:50 2006 +0100 msi: The szLogFile parameter of MsiEnableLogW is optional, so handle the case of it being NULL. --- dlls/msi/msi.c | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index f8bd963..7e4bae3 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -632,15 +632,20 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMod TRACE("%08lx %s %08lx\n", dwLogMode, debugstr_w(szLogFile), attributes); - lstrcpyW(gszLogFile,szLogFile); - if (!(attributes & INSTALLLOGATTRIBUTES_APPEND)) - DeleteFileW(szLogFile); - file = CreateFileW(szLogFile, GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, - FILE_ATTRIBUTE_NORMAL, NULL); - if (file != INVALID_HANDLE_VALUE) - CloseHandle(file); + if (szLogFile) + { + lstrcpyW(gszLogFile,szLogFile); + if (!(attributes & INSTALLLOGATTRIBUTES_APPEND)) + DeleteFileW(szLogFile); + file = CreateFileW(szLogFile, GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, + FILE_ATTRIBUTE_NORMAL, NULL); + if (file != INVALID_HANDLE_VALUE) + CloseHandle(file); + else + ERR("Unable to enable log %s\n",debugstr_w(szLogFile)); + } else - ERR("Unable to enable log %s\n",debugstr_w(szLogFile)); + gszLogFile[0] = '\0'; return ERROR_SUCCESS; }
1
0
0
0
Robert Shearman : rpcrt4: Set BufferMark before calling EmbeddedPointerMarshall, EmbeddedPointerUnmarshall or EmbeddedPointerMemorySize.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: 5700fe8a61c1113a074f394e3fa2fea9c185398c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=5700fe8a61c1113a074f394…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:46:03 2006 +0100 rpcrt4: Set BufferMark before calling EmbeddedPointerMarshall, EmbeddedPointerUnmarshall or EmbeddedPointerMemorySize. --- dlls/rpcrt4/ndr_marshall.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index 179d933..ac8d52c 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -3555,7 +3555,9 @@ unsigned char * WINAPI NdrFixedArrayMar total_size = pLgFArrayFormat->total_size; pFormat = (unsigned char *)(pLgFArrayFormat + 1); } + memcpy(pStubMsg->Buffer, pMemory, total_size); + pStubMsg->BufferMark = pStubMsg->Buffer; pStubMsg->Buffer += total_size; pFormat = EmbeddedPointerMarshall(pStubMsg, pMemory, pFormat); @@ -3601,6 +3603,7 @@ unsigned char * WINAPI NdrFixedArrayUnm if (fMustAlloc || !*ppMemory) *ppMemory = NdrAllocate(pStubMsg, total_size); memcpy(*ppMemory, pStubMsg->Buffer, total_size); + pStubMsg->BufferMark = pStubMsg->Buffer; pStubMsg->Buffer += total_size; pFormat = EmbeddedPointerUnmarshall(pStubMsg, ppMemory, pFormat, fMustAlloc); @@ -3678,6 +3681,7 @@ unsigned long WINAPI NdrFixedArrayMemory total_size = pLgFArrayFormat->total_size; pFormat = (unsigned char *)(pLgFArrayFormat + 1); } + pStubMsg->BufferMark = pStubMsg->Buffer; pStubMsg->Buffer += total_size; pStubMsg->MemorySize += total_size;
1
0
0
0
Robert Shearman : rpcrt4: Improve the stubs for RpcImpersonateClient and RpcRevertToSelf.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: ba9158e2e13e265818b22d2ab1f168dd42bb2976 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=ba9158e2e13e265818b22d2…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:46:07 2006 +0100 rpcrt4: Improve the stubs for RpcImpersonateClient and RpcRevertToSelf. --- dlls/rpcrt4/rpc_binding.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c index 7f5f14d..363ee90 100644 --- a/dlls/rpcrt4/rpc_binding.c +++ b/dlls/rpcrt4/rpc_binding.c @@ -893,6 +893,7 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy( RPC_STATUS WINAPI RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle) { FIXME("(%p): stub\n", BindingHandle); + ImpersonateSelf(SecurityImpersonation); return RPC_S_OK; } @@ -958,6 +959,7 @@ ULONG RpcAuthInfo_Release(RpcAuthInfo *A RPC_STATUS WINAPI RpcRevertToSelf(void) { FIXME("stub\n"); + RevertToSelf(); return RPC_S_OK; }
1
0
0
0
Robert Shearman : rpcrt4: Support small fixed arrays in EmbeddedComplexSize .
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: a8531067c4af80a904ce2b6b6ed28cadb6f9ddcf URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a8531067c4af80a904ce2b6…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:45:55 2006 +0100 rpcrt4: Support small fixed arrays in EmbeddedComplexSize. --- dlls/rpcrt4/ndr_marshall.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index fe4a248..179d933 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -1651,6 +1651,7 @@ static unsigned long EmbeddedComplexSize case RPC_FC_PSTRUCT: case RPC_FC_CSTRUCT: case RPC_FC_BOGUS_STRUCT: + case RPC_FC_SMFARRAY: return *(const WORD*)&pFormat[2]; case RPC_FC_USER_MARSHAL: return *(const WORD*)&pFormat[4];
1
0
0
0
Robert Shearman : rpcrt4: Allocate memory based on MaxCount, not ActualCount in NdrConformantStringUnmarshall.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: 4c4fc14fe90de4af295eefe2906258cfcb51981c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4c4fc14fe90de4af295eefe…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:45:15 2006 +0100 rpcrt4: Allocate memory based on MaxCount, not ActualCount in NdrConformantStringUnmarshall. --- dlls/rpcrt4/ndr_marshall.c | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index 1d751ac..fe4a248 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -650,7 +650,7 @@ unsigned long WINAPI NdrConformantString { unsigned long rslt = 0; - TRACE("(pStubMsg == ^%p, pFormat == ^%p)\n", pStubMsg, pFormat); + FIXME("(pStubMsg == ^%p, pFormat == ^%p)\n", pStubMsg, pFormat); assert(pStubMsg && pFormat); @@ -679,7 +679,7 @@ unsigned long WINAPI NdrConformantString unsigned char *WINAPI NdrConformantStringUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc ) { - ULONG size, esize, i; + ULONG bufsize, memsize, esize, i; TRACE("(pStubMsg == ^%p, *pMemory == ^%p, pFormat == ^%p, fMustAlloc == %u)\n", pStubMsg, *ppMemory, pFormat, fMustAlloc); @@ -697,16 +697,17 @@ unsigned char *WINAPI NdrConformantStrin esize = 0; } - size = safe_multiply(esize, pStubMsg->ActualCount); + memsize = safe_multiply(esize, pStubMsg->MaxCount); + bufsize = safe_multiply(esize, pStubMsg->ActualCount); /* strings must always have null terminating bytes */ - if (size < esize) + if (bufsize < esize) { ERR("invalid string length of %ld\n", pStubMsg->ActualCount); RpcRaiseException(RPC_S_INVALID_BOUND); return NULL; } - for (i = size - esize; i < size; i++) + for (i = bufsize - esize; i < bufsize; i++) if (pStubMsg->Buffer[i] != 0) { ERR("string not null-terminated at byte position %ld, data is 0x%x\n", @@ -716,11 +717,11 @@ unsigned char *WINAPI NdrConformantStrin } if (fMustAlloc || !*ppMemory) - *ppMemory = NdrAllocate(pStubMsg, size); + *ppMemory = NdrAllocate(pStubMsg, memsize); - memcpy(*ppMemory, pStubMsg->Buffer, size); + memcpy(*ppMemory, pStubMsg->Buffer, bufsize); - pStubMsg->Buffer += size; + pStubMsg->Buffer += bufsize; if (*pFormat == RPC_FC_C_CSTRING) { TRACE("string=%s\n", debugstr_a((char*)*ppMemory));
1
0
0
0
Robert Shearman : rpcrt4: Add support for marshaling the FC_HYPER base type in complex types.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: 98c26a81fece2afc901a95a465b3f8d919c52e50 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=98c26a81fece2afc901a95a…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:45:24 2006 +0100 rpcrt4: Add support for marshaling the FC_HYPER base type in complex types. Change the FIXME messages to print out unrecognised format characters in hex rather than decimal. --- dlls/rpcrt4/ndr_marshall.c | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index e1adfa0..1d751ac 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -1722,6 +1722,12 @@ static unsigned char * ComplexMarshall(P pStubMsg->Buffer += 4; pMemory += 4; break; + case RPC_FC_HYPER: + TRACE("longlong=%s <= %p\n", wine_dbgstr_longlong(*(ULONGLONG*)pMemory), pMemory); + memcpy(pStubMsg->Buffer, pMemory, 8); + pStubMsg->Buffer += 8; + pMemory += 8; + break; case RPC_FC_POINTER: TRACE("pointer=%p <= %p\n", *(unsigned char**)pMemory, pMemory); NdrPointerMarshall(pStubMsg, *(unsigned char**)pMemory, pPointer); @@ -1758,7 +1764,7 @@ static unsigned char * ComplexMarshall(P case RPC_FC_PAD: break; default: - FIXME("unhandled format %02x\n", *pFormat); + FIXME("unhandled format 0x%02x\n", *pFormat); } pFormat++; } @@ -1802,6 +1808,12 @@ static unsigned char * ComplexUnmarshall pStubMsg->Buffer += 4; pMemory += 4; break; + case RPC_FC_HYPER: + memcpy(pMemory, pStubMsg->Buffer, 8); + TRACE("longlong=%s => %p\n", wine_dbgstr_longlong(*(ULONGLONG*)pMemory), pMemory); + pStubMsg->Buffer += 8; + pMemory += 8; + break; case RPC_FC_POINTER: TRACE("pointer => %p\n", pMemory); NdrPointerUnmarshall(pStubMsg, (unsigned char**)pMemory, pPointer, TRUE); @@ -1877,6 +1889,10 @@ static unsigned char * ComplexBufferSize pStubMsg->BufferLength += 4; pMemory += 4; break; + case RPC_FC_HYPER: + pStubMsg->BufferLength += 8; + pMemory += 8; + break; case RPC_FC_POINTER: NdrPointerBufferSize(pStubMsg, *(unsigned char**)pMemory, pPointer); pPointer += 4; @@ -1911,7 +1927,7 @@ static unsigned char * ComplexBufferSize case RPC_FC_PAD: break; default: - FIXME("unhandled format %d\n", *pFormat); + FIXME("unhandled format 0x%02x\n", *pFormat); } pFormat++; } @@ -1946,6 +1962,9 @@ static unsigned char * ComplexFree(PMIDL case RPC_FC_ENUM32: pMemory += 4; break; + case RPC_FC_HYPER: + pMemory += 8; + break; case RPC_FC_POINTER: NdrPointerFree(pStubMsg, *(unsigned char**)pMemory, pPointer); pPointer += 4; @@ -1980,7 +1999,7 @@ static unsigned char * ComplexFree(PMIDL case RPC_FC_PAD: break; default: - FIXME("unhandled format %d\n", *pFormat); + FIXME("unhandled format 0x%02x\n", *pFormat); } pFormat++; } @@ -2015,6 +2034,10 @@ static unsigned long ComplexStructMemory size += 4; pStubMsg->Buffer += 4; break; + case RPC_FC_HYPER: + size += 8; + pStubMsg->Buffer += 8; + break; case RPC_FC_POINTER: size += 4; pStubMsg->Buffer += 4; @@ -2046,7 +2069,7 @@ static unsigned long ComplexStructMemory case RPC_FC_PAD: break; default: - FIXME("unhandled format %d\n", *pFormat); + FIXME("unhandled format 0x%02x\n", *pFormat); } pFormat++; }
1
0
0
0
Robert Shearman : uuid: Add IIDs and CLSIDs from xmldso.h.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: 2334e18adabc129e07e514cdb647e0affa1b72b2 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=2334e18adabc129e07e514c…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:45:02 2006 +0100 uuid: Add IIDs and CLSIDs from xmldso.h. --- dlls/uuid/uuid.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/uuid/uuid.c b/dlls/uuid/uuid.c index 98cdffb..a933923 100644 --- a/dlls/uuid/uuid.c +++ b/dlls/uuid/uuid.c @@ -60,6 +60,7 @@ #include "mshtml.h" #include "mshtmhst.h" #include "richole.h" #include "xmldom.h" +#include "xmldso.h" #include "downloadmgr.h" #include "objsel.h" #include "hlink.h"
1
0
0
0
Robert Shearman : oleaut32: Initialize pRetVal in ITypeInfo:: Invoke before calling VariantCopyInd
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: eb885a750f0677cb2d50f4969862065962471431 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=eb885a750f0677cb2d50f49…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:45:30 2006 +0100 oleaut32: Initialize pRetVal in ITypeInfo::Invoke before calling VariantCopyInd as native doesn't assume that it doesn't contain valid data. --- dlls/oleaut32/typelib.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 52aae92..3ba1b4e 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5391,8 +5391,11 @@ static HRESULT WINAPI ITypeInfo_fnInvoke } if (pVarResult) + { + VariantInit(pVarResult); /* deref return value */ hres = VariantCopyInd(pVarResult, prgpvarg[i]); + } /* free data stored in varresult. Note that * VariantClear doesn't do what we want because we are
1
0
0
0
Robert Shearman : msxml3: Use general DLL registration framework to register CLSIDs and ProgID's.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: 986b33d1718217e17bd08ed4a29dee8f95116605 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=986b33d1718217e17bd08ed…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Mon Jul 24 11:45:08 2006 +0100 msxml3: Use general DLL registration framework to register CLSIDs and ProgID's. --- dlls/msxml3/Makefile.in | 3 dlls/msxml3/main.c | 30 --- dlls/msxml3/regsvr.c | 525 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 527 insertions(+), 31 deletions(-) create mode 100644 dlls/msxml3/regsvr.c Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=986b33d1718217e17bd…
1
0
0
0
Mike McCormack : msi: Add a test case for MsiGetFileHash.
by Alexandre Julliard
24 Jul '06
24 Jul '06
Module: wine Branch: refs/heads/master Commit: a652e285171eb03d2d8b0d82f0747edadc625f4e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a652e285171eb03d2d8b0d8…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jul 24 18:21:29 2006 +0900 msi: Add a test case for MsiGetFileHash. --- dlls/msi/tests/msi.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 4334675..d6ddf02 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -25,6 +25,11 @@ #include <msiquery.h> #include "wine/test.h" +typedef struct test_MSIFILEHASHINFO { + ULONG dwFileHashInfoSize; + ULONG dwData[4]; +} test_MSIFILEHASHINFO, *test_PMSIFILEHASHINFO; + typedef INSTALLSTATE (WINAPI *fnMsiUseFeatureExA)(LPCSTR, LPCSTR ,DWORD, DWORD ); fnMsiUseFeatureExA pMsiUseFeatureExA; typedef UINT (WINAPI *fnMsiOpenPackageExA)(LPCSTR, DWORD, MSIHANDLE*); @@ -33,6 +38,8 @@ typedef UINT (WINAPI *fnMsiOpenPackageEx fnMsiOpenPackageExW pMsiOpenPackageExW; typedef INSTALLSTATE (WINAPI *fnMsiGetComponentPathA)(LPCSTR, LPCSTR, LPSTR, DWORD*); fnMsiGetComponentPathA pMsiGetComponentPathA; +typedef UINT (WINAPI *fnMsiGetFileHashA)(LPCSTR, DWORD, test_PMSIFILEHASHINFO); +fnMsiGetFileHashA pMsiGetFileHashA; static void test_usefeature(void) { @@ -125,6 +132,60 @@ static void test_getcomponentpath(void) ok( r == INSTALLSTATE_UNKNOWN, "wrong return value\n"); } +static void test_filehash(void) +{ + const char name[] = "msitest.bin"; + const char data[] = {'a','b','c'}; + HANDLE handle; + UINT r; + test_MSIFILEHASHINFO hash; + DWORD count = 0; + + if (!pMsiGetFileHashA) + return; + + DeleteFile(name); + + memset(&hash, 0, sizeof hash); + r = pMsiGetFileHashA(name, 0, &hash); + ok( r == ERROR_INVALID_PARAMETER, "wrong error %d\n", r); + + r = pMsiGetFileHashA(name, 0, NULL); + ok( r == ERROR_INVALID_PARAMETER, "wrong error %d\n", r); + + memset(&hash, 0, sizeof hash); + hash.dwFileHashInfoSize = sizeof hash; + r = pMsiGetFileHashA(name, 0, &hash); + ok( r == ERROR_FILE_NOT_FOUND, "wrong error %d\n", r); + + handle = CreateFile(name, GENERIC_READ|GENERIC_WRITE, 0, NULL, + CREATE_ALWAYS, FILE_ATTRIBUTE_ARCHIVE, NULL); + ok(handle != INVALID_HANDLE_VALUE, "failed to create file\n"); + + WriteFile(handle, data, sizeof data, &count, NULL); + CloseHandle(handle); + + memset(&hash, 0, sizeof hash); + r = pMsiGetFileHashA(name, 0, &hash); + ok( r == ERROR_INVALID_PARAMETER, "wrong error %d\n", r); + + memset(&hash, 0, sizeof hash); + hash.dwFileHashInfoSize = sizeof hash; + r = pMsiGetFileHashA(name, 1, &hash); + ok( r == ERROR_INVALID_PARAMETER, "wrong error %d\n", r); + + r = pMsiGetFileHashA(name, 0, &hash); + ok( r == ERROR_SUCCESS, "wrong error %d\n", r); + + ok(hash.dwFileHashInfoSize == sizeof hash, "hash size changed\n"); + ok(hash.dwData[0] == 0x98500190 && + hash.dwData[1] == 0xb04fd23c && + hash.dwData[2] == 0x7d3f96d6 && + hash.dwData[3] == 0x727fe128, "hash of abc incorrect\n"); + + DeleteFile(name); +} + START_TEST(msi) { HMODULE hmod = GetModuleHandle("msi.dll"); @@ -136,8 +197,11 @@ START_TEST(msi) GetProcAddress(hmod, "MsiOpenPackageExW"); pMsiGetComponentPathA = (fnMsiGetComponentPathA) GetProcAddress(hmod, "MsiGetComponentPathA" ); + pMsiGetFileHashA = (fnMsiGetFileHashA) + GetProcAddress(hmod, "MsiGetFileHashA" ); test_usefeature(); test_null(); test_getcomponentpath(); + test_filehash(); }
1
0
0
0
← Newer
1
...
21
22
23
24
25
26
27
...
86
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
Results per page:
10
25
50
100
200