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
December 2008
----- 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
2 participants
1225 discussions
Start a n
N
ew thread
Christian Costa : dmime: Check input params in IDirectMusicSegmentState8Impl_QueryInterface.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 53562c7a843eb9e7d4b8673c2a0ae38f55ec1309 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=53562c7a843eb9e7d4b8673c2…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Sun Dec 14 19:03:56 2008 +0100 dmime: Check input params in IDirectMusicSegmentState8Impl_QueryInterface. --- dlls/dmime/segmentstate.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/dmime/segmentstate.c b/dlls/dmime/segmentstate.c index 191b2f0..afa67c0 100644 --- a/dlls/dmime/segmentstate.c +++ b/dlls/dmime/segmentstate.c @@ -26,6 +26,9 @@ static HRESULT WINAPI IDirectMusicSegmentState8Impl_QueryInterface (LPDIRECTMUSI IDirectMusicSegmentState8Impl *This = (IDirectMusicSegmentState8Impl *)iface; TRACE("(%p, %s, %p)\n", This, debugstr_dmguid(riid), ppobj); + if (!riid || !ppobj) + return E_POINTER; + if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDirectMusicSegmentState) || IsEqualIID(riid, &IID_IDirectMusicSegmentState8)) {
1
0
0
0
Christian Costa : dmime: Improve IDirectMusicPerformance8Impl_PlaySegment( Ex) stubs.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 7ed6f0a643138ff1253e46dd17725a8fc002470a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7ed6f0a643138ff1253e46dd1…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Sun Dec 14 19:00:15 2008 +0100 dmime: Improve IDirectMusicPerformance8Impl_PlaySegment(Ex) stubs. --- dlls/dmime/performance.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c index 0523cd7..b98652d 100644 --- a/dlls/dmime/performance.c +++ b/dlls/dmime/performance.c @@ -253,6 +253,8 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_PlaySegment (LPDIRECTMUSICPER IDirectMusicPerformance8Impl *This = (IDirectMusicPerformance8Impl *)iface; FIXME("(%p, %p, %d, 0x%s, %p): stub\n", This, pSegment, dwFlags, wine_dbgstr_longlong(i64StartTime), ppSegmentState); + if (ppSegmentState) + return DMUSIC_CreateDirectMusicSegmentStateImpl(&IID_IDirectMusicSegmentState, (LPVOID*)ppSegmentState, NULL); return S_OK; } @@ -787,7 +789,9 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_PlaySegmentEx (LPDIRECTMUSICP IDirectMusicPerformance8Impl *This = (IDirectMusicPerformance8Impl *)iface; FIXME("(%p, %p, %p, %p, %d, 0x%s, %p, %p, %p): stub\n", This, pSource, pwzSegmentName, pTransition, dwFlags, wine_dbgstr_longlong(i64StartTime), ppSegmentState, pFrom, pAudioPath); - return DMUS_E_SEGMENT_INIT_FAILED; + if (ppSegmentState) + return DMUSIC_CreateDirectMusicSegmentStateImpl(&IID_IDirectMusicSegmentState, (LPVOID*)ppSegmentState, NULL); + return S_OK; } static HRESULT WINAPI IDirectMusicPerformance8Impl_StopEx (LPDIRECTMUSICPERFORMANCE8 iface, IUnknown* pObjectToStop, __int64 i64StopTime, DWORD dwFlags) {
1
0
0
0
Christian Costa : dplayx: Fix typo.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 34f6afdf89e7887b9ae7a94c1bb3e052dd1b1d46 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=34f6afdf89e7887b9ae7a94c1…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Sun Dec 14 18:58:59 2008 +0100 dplayx: Fix typo. --- dlls/dplayx/dplobby.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/dplayx/dplobby.c b/dlls/dplayx/dplobby.c index 901c375..bd620a4 100644 --- a/dlls/dplayx/dplobby.c +++ b/dlls/dplayx/dplobby.c @@ -1834,7 +1834,7 @@ static const IDirectPlayLobby2Vtbl directPlayLobby2AVT = /* Note: Hack so we can reuse the old functions without compiler warnings */ #if !defined(__STRICT_ANSI__) && defined(__GNUC__) -# define XCAST(fun) (typeof(directPlayLobby2AVT.fun)) +# define XCAST(fun) (typeof(directPlayLobby2WVT.fun)) #else # define XCAST(fun) (void*) #endif
1
0
0
0
Christian Costa : d3dxof: Increase string buffer size.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 0f840ba98bca638336fc0a99819307d842c4aff2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0f840ba98bca638336fc0a998…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Sun Dec 14 18:57:31 2008 +0100 d3dxof: Increase string buffer size. --- dlls/d3dxof/d3dxof_private.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/d3dxof/d3dxof_private.h b/dlls/d3dxof/d3dxof_private.h index 798097f..55acce1 100644 --- a/dlls/d3dxof/d3dxof_private.h +++ b/dlls/d3dxof/d3dxof_private.h @@ -40,7 +40,7 @@ #define MAX_TEMPLATES 200 #define MAX_OBJECTS 500 #define MAX_SUBOBJECTS 500 -#define MAX_STRINGS_BUFFER 1000 +#define MAX_STRINGS_BUFFER 10000 typedef struct { DWORD type;
1
0
0
0
Christian Costa : d3dxof: Improve error handling.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 044701357262808fc4cd17366e2110e2ddd27f7a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=044701357262808fc4cd17366…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Sun Dec 14 18:55:10 2008 +0100 d3dxof: Improve error handling. --- dlls/d3dxof/d3dxof.c | 42 +++++++++++++++++++++++++++++++----------- 1 files changed, 31 insertions(+), 11 deletions(-) diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index 4be62bd..25334c2 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -147,7 +147,12 @@ HRESULT IDirectXFileImpl_Create(IUnknown* pUnkOuter, LPVOID* ppObj) TRACE("(%p,%p)\n", pUnkOuter, ppObj); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectXFileImpl)); - + if (!object) + { + ERR("Out of memory\n"); + return DXFILEERR_BADALLOC; + } + object->lpVtbl.lpVtbl = &IDirectXFile_Vtbl; object->ref = 1; @@ -310,7 +315,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV object->buf.buffer = HeapAlloc(GetProcessHeap(), 0, MAX_INPUT_SIZE+1); if (!object->buf.buffer) { - WARN("Out of memory\n"); + ERR("Out of memory\n"); hr = DXFILEERR_BADALLOC; goto error; } @@ -1452,7 +1457,12 @@ static HRESULT IDirectXFileDataImpl_Create(IDirectXFileDataImpl** ppObj) TRACE("(%p)\n", ppObj); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectXFileDataImpl)); - + if (!object) + { + ERR("Out of memory\n"); + return DXFILEERR_BADALLOC; + } + object->lpVtbl.lpVtbl = &IDirectXFileData_Vtbl; object->ref = 1; @@ -1597,8 +1607,8 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface IDirectXFileDataReferenceImpl *object; hr = IDirectXFileDataReferenceImpl_Create(&object); - if (hr != S_OK) - return DXFILEERR_BADVALUE; + if (FAILED(hr)) + return hr; object->ptarget = This->pobj->childs[This->cur_enum_object++]->ptarget; @@ -1609,8 +1619,8 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetNextObject(IDirectXFileData* iface IDirectXFileDataImpl *object; hr = IDirectXFileDataImpl_Create(&object); - if (hr != S_OK) - return DXFILEERR_BADVALUE; + if (FAILED(hr)) + return hr; object->pobj = This->pobj->childs[This->cur_enum_object++]; object->cur_enum_object = 0; @@ -1672,6 +1682,11 @@ static HRESULT IDirectXFileDataReferenceImpl_Create(IDirectXFileDataReferenceImp TRACE("(%p)\n", ppObj); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectXFileDataReferenceImpl)); + if (!object) + { + ERR("Out of memory\n"); + return DXFILEERR_BADALLOC; + } object->lpVtbl.lpVtbl = &IDirectXFileDataReference_Vtbl; object->ref = 1; @@ -1770,8 +1785,8 @@ static HRESULT WINAPI IDirectXFileDataReferenceImpl_Resolve(IDirectXFileDataRefe return DXFILEERR_BADVALUE; hr = IDirectXFileDataImpl_Create(&object); - if (hr != S_OK) - return DXFILEERR_BADVALUE; + if (FAILED(hr)) + return hr; object->pobj = This->ptarget; object->cur_enum_object = 0; @@ -1800,6 +1815,11 @@ static HRESULT IDirectXFileEnumObjectImpl_Create(IDirectXFileEnumObjectImpl** pp TRACE("(%p)\n", ppObj); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectXFileEnumObjectImpl)); + if (!object) + { + ERR("Out of memory\n"); + return DXFILEERR_BADALLOC; + } object->lpVtbl.lpVtbl = &IDirectXFileEnumObject_Vtbl; object->ref = 1; @@ -2192,7 +2212,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE pdata = HeapAlloc(GetProcessHeap(), 0, MAX_DATA_SIZE); if (!pdata) { - WARN("Out of memory\n"); + ERR("Out of memory\n"); return DXFILEERR_BADALLOC; } This->buf.cur_pdata = This->buf.pdata = pdata; @@ -2200,7 +2220,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE pstrings = HeapAlloc(GetProcessHeap(), 0, MAX_STRINGS_BUFFER); if (!pstrings) { - WARN("Out of memory\n"); + ERR("Out of memory\n"); HeapFree(GetProcessHeap(), 0, This->buf.pxo->pdata); return DXFILEERR_BADALLOC; }
1
0
0
0
Christian Costa : d3dxof: Add a test to dump an X object data ( enabled when objects.txt and templates.txt are present).
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 32ab7d298ffac98b687d369e8b9fe87f79b76be9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=32ab7d298ffac98b687d369e8…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Sun Dec 14 18:53:15 2008 +0100 d3dxof: Add a test to dump an X object data (enabled when objects.txt and templates.txt are present). --- dlls/d3dxof/tests/d3dxof.c | 181 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 181 insertions(+), 0 deletions(-) diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c index bdc1431..4bd52ca 100644 --- a/dlls/d3dxof/tests/d3dxof.c +++ b/dlls/d3dxof/tests/d3dxof.c @@ -20,9 +20,19 @@ #define COBJMACROS #include <assert.h> +#include <stdio.h> #include "wine/test.h" +#include "initguid.h" #include "dxfile.h" +static inline void debugstr_guid( char* buf, CONST GUID *id ) +{ + sprintf(buf, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", + id->Data1, id->Data2, id->Data3, + id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3], + id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] ); +} + static HMODULE hd3dxof; static HRESULT (WINAPI *pDirectXFileCreate)(LPDIRECTXFILE*); @@ -86,11 +96,182 @@ static void test_d3dxof(void) ok(ref == 0, "Got refcount %ld, expected 1\n", ref); } +/* Set it to 1 to expand the string when dumping the object. This is usefull when there is + * only one string in a sub-object (very common). Use with care, this may lead to a crash. */ +#define EXPAND_STRING 0 + +static void process_data(LPDIRECTXFILEDATA lpDirectXFileData, int* plevel) +{ + HRESULT hr; + char name[100]; + GUID clsid; + CONST GUID* clsid_type = NULL; + char str_clsid[40]; + char str_clsid_type[40]; + DWORD len= 100; + LPDIRECTXFILEOBJECT pChildObj; + int i,k; + int j = 0; + LPBYTE pData; + DWORD size; + + hr = IDirectXFileData_GetId(lpDirectXFileData, &clsid); + ok(hr == DXFILE_OK, "IDirectXFileData_GetId: %x\n", hr); + hr = IDirectXFileData_GetName(lpDirectXFileData, name, &len); + ok(hr == DXFILE_OK, "IDirectXFileData_GetName: %x\n", hr); + hr = IDirectXFileData_GetType(lpDirectXFileData, &clsid_type); + ok(hr == DXFILE_OK, "IDirectXFileData_GetType: %x\n", hr); + hr = IDirectXFileData_GetData(lpDirectXFileData, NULL, &size, (void**)&pData); + ok(hr == DXFILE_OK, "IDirectXFileData_GetData: %x\n", hr); + for (i = 0; i < *plevel; i++) + printf(" "); + debugstr_guid(str_clsid, &clsid); + debugstr_guid(str_clsid_type, clsid_type); + printf("Found object '%s' - %s - %s - %d\n", name, str_clsid, str_clsid_type, size); + + if (EXPAND_STRING && size == 4) + { + char * str = *(char**)pData; + printf("string %s\n", str); + } + else if (size) + { + for (k = 0; k < size; k++) + { + if (k && !(k%16)) + printf("\n"); + printf("%02x ", pData[k]); + } + printf("\n"); + } + (*plevel)++; + while (SUCCEEDED(hr = IDirectXFileData_GetNextObject(lpDirectXFileData, &pChildObj))) + { + LPDIRECTXFILEDATA p1; + LPDIRECTXFILEDATAREFERENCE p2; + LPDIRECTXFILEBINARY p3; + j++; + + hr = IDirectXFileObject_QueryInterface(pChildObj, &IID_IDirectXFileData, (void **) &p1); + if (SUCCEEDED(hr)) + { + for (i = 0; i < *plevel; i++) + printf(" "); + printf("Found Data (%d)\n", j); + process_data(p1, plevel); + IDirectXFileData_Release(p1); + } + hr = IDirectXFileObject_QueryInterface(pChildObj, &IID_IDirectXFileDataReference, (void **) &p2); + if (SUCCEEDED(hr)) + { + LPDIRECTXFILEDATA pfdo; + for (i = 0; i < *plevel; i++) + printf(" "); + printf("Found Data Reference (%d)\n", j); +#if 0 + hr = IDirectXFileDataReference_GetId(lpDirectXFileData, &clsid); + ok(hr == DXFILE_OK, "IDirectXFileData_GetId: %x\n", hr); + hr = IDirectXFileDataReference_GetName(lpDirectXFileData, name, &len); + ok(hr == DXFILE_OK, "IDirectXFileData_GetName: %x\n", hr); +#endif + IDirectXFileDataReference_Resolve(p2, &pfdo); + process_data(pfdo, plevel); + IDirectXFileData_Release(pfdo); + IDirectXFileDataReference_Release(p2); + } + hr = IDirectXFileObject_QueryInterface(pChildObj, &IID_IDirectXFileBinary, (void **) &p3); + if (SUCCEEDED(hr)) + { + for (i = 0; i < *plevel; i++) + printf(" "); + printf("Found Binary (%d)\n", j); + IDirectXFileBinary_Release(p3); + } + } + (*plevel)--; + ok(hr == DXFILE_OK || hr == DXFILEERR_NOMOREOBJECTS, "IDirectXFileData_GetNextObject: %x\n", hr); +} + +static void test_dump(void) +{ + HRESULT hr; + unsigned long ref; + LPDIRECTXFILE lpDirectXFile = NULL; + LPDIRECTXFILEENUMOBJECT lpDirectXFileEnumObject = NULL; + LPDIRECTXFILEDATA lpDirectXFileData = NULL; + HANDLE hFile; + LPVOID pvData = NULL; + DWORD cbSize; + + if (!pDirectXFileCreate) + { + win_skip("DirectXFileCreate is not available\n"); + goto exit; + } + + /* Dump data only if there is an object and a template */ + hFile = CreateFileA("objects.txt", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); + if (hFile == INVALID_HANDLE_VALUE) + return; + CloseHandle(hFile); + + hFile = CreateFileA("templates.txt", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); + if (hFile == INVALID_HANDLE_VALUE) + return; + + pvData = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, 10000); + + if (!ReadFile(hFile, pvData, 10000, &cbSize, NULL)) + { + skip("Template file is too big\n"); + goto exit; + } + + printf("Load %d (%d) bytes\n", cbSize, strlen(pvData)); + + hr = pDirectXFileCreate(&lpDirectXFile); + ok(hr == DXFILE_OK, "DirectXFileCreate: %x\n", hr); + if(!lpDirectXFile) + { + skip("Couldn't create DirectXFile interface\n"); + goto exit; + } + + hr = IDirectXFile_RegisterTemplates(lpDirectXFile, pvData, strlen(pvData)); + ok(hr == DXFILE_OK, "IDirectXFileImpl_RegisterTemplates: %x\n", hr); + + hr = IDirectXFile_CreateEnumObject(lpDirectXFile, (LPVOID)"objects.txt", DXFILELOAD_FROMFILE, &lpDirectXFileEnumObject); + ok(hr == DXFILE_OK, "IDirectXFile_CreateEnumObject: %x\n", hr); + + while (SUCCEEDED(hr = IDirectXFileEnumObject_GetNextDataObject(lpDirectXFileEnumObject, &lpDirectXFileData))) + { + int level = 0; + printf("\n"); + process_data(lpDirectXFileData, &level); + IDirectXFileData_Release(lpDirectXFileData); + } + ok(hr == DXFILE_OK || hr == DXFILEERR_NOMOREOBJECTS, "IDirectXFileEnumObject_GetNextDataObject: %x\n", hr); + + ref = IDirectXFile_Release(lpDirectXFileEnumObject); + ok(ref == 0, "Got refcount %ld, expected 0\n", ref); + + ref = IDirectXFile_Release(lpDirectXFile); + ok(ref == 0, "Got refcount %ld, expected 0\n", ref); + + CloseHandle(hFile); + +exit: + + if (pvData) + HeapFree(GetProcessHeap(), 0, pvData); +} + START_TEST(d3dxof) { init_function_pointers(); test_d3dxof(); + test_dump(); FreeLibrary(hd3dxof); }
1
0
0
0
Christian Costa : setupx: Add stub for DiInstallClass.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: e6abe0e83ecffe2a2e41b65220c464d32e6280d7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e6abe0e83ecffe2a2e41b6522…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Sun Dec 14 18:49:45 2008 +0100 setupx: Add stub for DiInstallClass. --- dlls/setupapi/setupx.spec | 2 +- dlls/setupapi/setupx_main.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/setupapi/setupx.spec b/dlls/setupapi/setupx.spec index 7243a97..590355f 100644 --- a/dlls/setupapi/setupx.spec +++ b/dlls/setupapi/setupx.spec @@ -154,7 +154,7 @@ 318 pascal -ret16 DiCreateDevRegKey (ptr ptr word str word) DiCreateDevRegKey16 319 pascal -ret16 DiOpenDevRegKey (ptr ptr word) DiOpenDevRegKey16 320 stub DiInstallDrvSection #(str str str str long) -321 stub DiInstallClass #(str long) +321 pascal -ret16 DiInstallClass (str long) DiInstallClass16 322 stub DiOpenClassRegKey #(ptr str) 323 stub Display_SetFontSize #(str) 324 stub Display_OpenFontSizeKey #(ptr) diff --git a/dlls/setupapi/setupx_main.c b/dlls/setupapi/setupx_main.c index 82593f3..0690333 100644 --- a/dlls/setupapi/setupx_main.c +++ b/dlls/setupapi/setupx_main.c @@ -587,6 +587,17 @@ RETERR16 WINAPI CtlGetLddPath16(LOGDISKID16 ldid, LPSTR szPath) } /*********************************************************************** + * DiInstallClass (SETUPX.321) + * + * Install Class from an INF file (in [ClassInstall] section) + */ +RETERR16 WINAPI DiInstallClass16(LPCSTR lpszInfFileName, DWORD dwFlags) +{ + FIXME("(%s, %u), stub.\n", lpszInfFileName, dwFlags); + return 0; +} + +/*********************************************************************** * CtlSetLddPath (SETUPX.508) * * Sets the path of an LDD.
1
0
0
0
Maarten Lankhorst : includes: Fix packing for commdlg in Win64.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 424caea9674ede78cd7a9adcbed7b154bd358015 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=424caea9674ede78cd7a9adcb…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Sat Dec 13 23:06:48 2008 +0100 includes: Fix packing for commdlg in Win64. --- include/commdlg.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/commdlg.h b/include/commdlg.h index 914e4c8..34e6b22 100644 --- a/include/commdlg.h +++ b/include/commdlg.h @@ -26,7 +26,9 @@ extern "C" { #endif #include <prsht.h> +#ifndef _WIN64 #include <pshpack1.h> +#endif #ifndef SNDMSG #ifdef __cplusplus @@ -770,7 +772,9 @@ BOOL WINAPI ChooseFontW(LPCHOOSEFONTW); void COMDLG32_SetCommDlgExtendedError(DWORD err); +#ifndef _WIN64 #include <poppack.h> +#endif #ifdef __cplusplus }
1
0
0
0
Francois Gouget : devenum: Explicitly identify the translation as being for SUBLANG_PORTUGUESE_BRAZILIAN .
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: e9ab244d7752d10f7e4566d2efcd8b40bb8adb39 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e9ab244d7752d10f7e4566d2e…
Author: Francois Gouget <fgouget(a)free.fr> Date: Sun Dec 14 02:09:13 2008 +0100 devenum: Explicitly identify the translation as being for SUBLANG_PORTUGUESE_BRAZILIAN. --- dlls/devenum/devenum.rc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/devenum/devenum.rc b/dlls/devenum/devenum.rc index 4178c37..9313984 100644 --- a/dlls/devenum/devenum.rc +++ b/dlls/devenum/devenum.rc @@ -72,7 +72,7 @@ LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL } STRINGTABLE DISCARDABLE -LANGUAGE LANG_PORTUGUESE, SUBLANG_DEFAULT +LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN { 7 "DirectSound padrão" 8 "DirectSound: %s"
1
0
0
0
Francois Gouget : msi/tests: Make enum_stream_names() and package_RegDeleteTreeW() static.
by Alexandre Julliard
15 Dec '08
15 Dec '08
Module: wine Branch: master Commit: 0d7cb11fdfa88a0d0ffa3e29d37a7716b2acbaf8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0d7cb11fdfa88a0d0ffa3e29d…
Author: Francois Gouget <fgouget(a)free.fr> Date: Sat Dec 13 12:05:56 2008 +0100 msi/tests: Make enum_stream_names() and package_RegDeleteTreeW() static. --- dlls/msi/tests/db.c | 2 +- dlls/msi/tests/package.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 6f92a21..475b10b 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -4694,7 +4694,7 @@ static const struct { {_StringPool, data14, sizeof data14}, }; -void enum_stream_names(IStorage *stg) +static void enum_stream_names(IStorage *stg) { IEnumSTATSTG *stgenum = NULL; IStream *stm; diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index e3565ef..5ad1d38 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -54,7 +54,7 @@ static void get_user_sid(LPSTR *usersid) } /* RegDeleteTreeW from dlls/advapi32/registry.c */ -LSTATUS WINAPI package_RegDeleteTreeW(HKEY hKey, LPCWSTR lpszSubKey) +static LSTATUS package_RegDeleteTreeW(HKEY hKey, LPCWSTR lpszSubKey) { LONG ret; DWORD dwMaxSubkeyLen, dwMaxValueLen;
1
0
0
0
← Newer
1
...
58
59
60
61
62
63
64
...
123
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
Results per page:
10
25
50
100
200