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 2005
----- 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
4 participants
575 discussions
Start a n
N
ew thread
wine/dlls/d3d9 query.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21160 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 06:46:21 Modified files: dlls/d3d9 : query.c Log message: Oliver Stieber <oliver_stieber(a)yahoo.co.uk> Allow NULL ppQuery to be passed to CreateQuery. Patch:
http://cvs.winehq.org/patch.py?id=21160
Old revision New revision Changes Path 1.11 1.12 +29 -26 wine/dlls/d3d9/query.c Index: wine/dlls/d3d9/query.c diff -u -p wine/dlls/d3d9/query.c:1.11 wine/dlls/d3d9/query.c:1.12 --- wine/dlls/d3d9/query.c:1.11 8 Nov 2005 12:46:21 -0000 +++ wine/dlls/d3d9/query.c 8 Nov 2005 12:46:21 -0000 @@ -119,32 +119,35 @@ const IDirect3DQuery9Vtbl Direct3DQuery9 /* IDirect3DDevice9 IDirect3DQuery9 Methods follow: */ HRESULT WINAPI IDirect3DDevice9Impl_CreateQuery(LPDIRECT3DDEVICE9 iface, D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) { - IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; - IDirect3DQuery9Impl *object = NULL; - HRESULT hr = D3D_OK; - - TRACE("(%p) Relay\n", This); - - /* Allocate the storage for the device */ - object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DQuery9Impl)); - if (NULL == object) { - FIXME("Allocation of memory failed\n"); - *ppQuery = NULL; - return D3DERR_OUTOFVIDEOMEMORY; - } - - object->lpVtbl = &Direct3DQuery9_Vtbl; - object->ref = 1; - hr = IWineD3DDevice_CreateQuery(This->WineD3DDevice, Type, &(object->wineD3DQuery), (IUnknown*)object); - - if (FAILED(hr)) { - /* free up object */ - FIXME("(%p) call to IWineD3DDevice_CreateQuery failed\n", This); - HeapFree(GetProcessHeap(), 0, object); - *ppQuery = NULL; - } else { - *ppQuery = (LPDIRECT3DQUERY9) object; - } - TRACE("(%p) : returning %p \n", This, *ppQuery); - return hr; + IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; + IDirect3DQuery9Impl *object = NULL; + HRESULT hr = D3D_OK; + + TRACE("(%p) Relay\n", This); + + if (!ppQuery) + return IWineD3DDevice_CreateQuery(This->WineD3DDevice, Type, NULL, NULL); + + /* Allocate the storage for the device */ + object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DQuery9Impl)); + if (NULL == object) { + FIXME("Allocation of memory failed\n"); + *ppQuery = NULL; + return D3DERR_OUTOFVIDEOMEMORY; + } + + object->lpVtbl = &Direct3DQuery9_Vtbl; + object->ref = 1; + hr = IWineD3DDevice_CreateQuery(This->WineD3DDevice, Type, &object->wineD3DQuery, (IUnknown *)object); + + if (FAILED(hr)) { + /* free up object */ + FIXME("(%p) call to IWineD3DDevice_CreateQuery failed\n", This); + HeapFree(GetProcessHeap(), 0, object); + *ppQuery = NULL; + } else { + *ppQuery = (LPDIRECT3DQUERY9) object; + } + TRACE("(%p) : returning %lx\n", This, hr); + return hr; }
1
0
0
0
wine/dlls/advpack tests/advpack.c advpack.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21159 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 06:43:35 Modified files: dlls/advpack/tests: advpack.c dlls/advpack : advpack.c Log message: James Hawkins <truiken(a)gmail.com> Implement TranslateInfString with tests. Patch:
http://cvs.winehq.org/patch.py?id=21159
Old revision New revision Changes Path 1.5 1.6 +98 -1 wine/dlls/advpack/tests/advpack.c 1.13 1.14 +41 -7 wine/dlls/advpack/advpack.c Index: wine/dlls/advpack/tests/advpack.c diff -u -p wine/dlls/advpack/tests/advpack.c:1.5 wine/dlls/advpack/tests/advpack.c:1.6 --- wine/dlls/advpack/tests/advpack.c:1.5 8 Nov 2005 12:43:35 -0000 +++ wine/dlls/advpack/tests/advpack.c 8 Nov 2005 12:43:35 -0000 @@ -19,13 +19,18 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <stdio.h> #include <windows.h> #include <advpub.h> #include <assert.h> #include "wine/test.h" +#define TEST_STRING1 "C:\\Program Files\\Application Name" +#define TEST_STRING2 "%49001%\\Application Name" + static HRESULT (WINAPI *pGetVersionFromFile)(LPSTR,LPDWORD,LPDWORD,BOOL); static HRESULT (WINAPI *pDelNode)(LPCSTR,DWORD); +static HRESULT (WINAPI *pTranslateInfString)(LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,DWORD,LPDWORD,LPVOID); static void version_test(void) { @@ -114,6 +119,96 @@ static void delnode_test(void) currDir[currDirLen] = '\0'; } +static void append_str(char **str, const char *data) +{ + sprintf(*str, data); + *str += strlen(*str); +} + +static void create_inf_file() +{ + char data[1024]; + char *ptr = data; + HANDLE hf = CreateFile("c:\\test.inf", GENERIC_WRITE, 0, NULL, + CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + + append_str(&ptr, "[Version]\n"); + append_str(&ptr, "Signature=\"$Chicago$\"\n"); + append_str(&ptr, "[CustInstDestSection]\n"); + append_str(&ptr, "49001=ProgramFilesDir\n"); + append_str(&ptr, "[ProgramFilesDir]\n"); + append_str(&ptr, "HKLM,\"Software\\Microsoft\\Windows\\CurrentVersion\","); + append_str(&ptr, "\"ProgramFilesDir\",,\"%%24%%\\%%LProgramF%%\"\n"); + append_str(&ptr, "[section]\n"); + append_str(&ptr, "NotACustomDestination=Version\n"); + append_str(&ptr, "CustomDestination=CustInstDestSection\n"); + append_str(&ptr, "[Options.NTx86]\n"); + append_str(&ptr, "49001=ProgramFilesDir\n"); + append_str(&ptr, "InstallDir=%%49001%%\\%%DefaultAppPath%%\n"); + append_str(&ptr, "CustomHDestination=CustInstDestSection\n"); + append_str(&ptr, "[Strings]\n"); + append_str(&ptr, "DefaultAppPath=\"Application Name\"\n"); + append_str(&ptr, "LProgramF=\"Program Files\"\n"); + + WriteFile(hf, data, ptr - data, NULL, NULL); + CloseHandle(hf); +} + +static void translateinfstring_test() +{ + HRESULT hr; + char buffer[MAX_PATH]; + DWORD dwSize; + + create_inf_file(); + + /* pass in a couple invalid parameters */ + hr = pTranslateInfString(NULL, NULL, NULL, NULL, buffer, MAX_PATH, &dwSize, NULL); + ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got 0x%08x\n", (UINT)hr); + + /* try to open an inf file that doesn't exist */ + hr = pTranslateInfString("c:\\a.inf", "Options.NTx86", "Options.NTx86", + "InstallDir", buffer, MAX_PATH, &dwSize, NULL); + ok(hr == 0x80070002, "Expected 0x80070002, got 0x%08x\n", (UINT)hr); + + /* try a nonexistent section */ + hr = pTranslateInfString("c:\\test.inf", "idontexist", "Options.NTx86", + "InstallDir", buffer, MAX_PATH, &dwSize, NULL); + ok(hr == S_OK, "Expected S_OK, got 0x%08x\n", (UINT)hr); + ok(!strcmp(buffer, TEST_STRING2), "Expected %s, got %s\n", TEST_STRING2, buffer); + ok(dwSize == 25, "Expected size 25, got %ld\n", dwSize); + + /* try other nonexistent section */ + hr = pTranslateInfString("c:\\test.inf", "Options.NTx86", "idontexist", + "InstallDir", buffer, MAX_PATH, &dwSize, NULL); + ok(hr == SPAPI_E_LINE_NOT_FOUND, "Expected SPAPI_E_LINE_NOT_FOUND, got 0x%08x\n", (UINT)hr); + + /* try nonexistent key */ + hr = pTranslateInfString("c:\\test.inf", "Options.NTx86", "Options.NTx86", + "notvalid", buffer, MAX_PATH, &dwSize, NULL); + ok(hr == SPAPI_E_LINE_NOT_FOUND, "Expected SPAPI_E_LINE_NOT_FOUND, got 0x%08x\n", (UINT)hr); + + /* test the behavior of pszInstallSection */ + hr = pTranslateInfString("c:\\test.inf", "section", "Options.NTx86", + "InstallDir", buffer, MAX_PATH, &dwSize, NULL); + ok(hr == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got 0x%08x\n", (UINT)hr); + + todo_wine + { + ok(!strcmp(buffer, TEST_STRING1), "Expected %s, got %s\n", TEST_STRING1, buffer); + ok(dwSize == 34, "Expected size 34, got %ld\n", dwSize); + } + + /* try without a pszInstallSection */ + hr = pTranslateInfString("c:\\test.inf", NULL, "Options.NTx86", + "InstallDir", buffer, MAX_PATH, &dwSize, NULL); + ok(hr == S_OK, "Expected S_OK, got 0x%08x\n", (UINT)hr); + ok(!strcmp(buffer, TEST_STRING2), "Expected %s, got %s\n", TEST_STRING2, buffer); + ok(dwSize == 25, "Expected size 25, got %ld\n", dwSize); + + DeleteFile("c:\\test.inf"); +} + START_TEST(advpack) { HMODULE hdll; @@ -124,11 +219,13 @@ START_TEST(advpack) pGetVersionFromFile = (void*)GetProcAddress(hdll, "GetVersionFromFile"); pDelNode = (void*)GetProcAddress(hdll, "DelNode"); - if (!pGetVersionFromFile || !pDelNode) + pTranslateInfString = (void*)GetProcAddress(hdll, "TranslateInfString"); + if (!pGetVersionFromFile || !pDelNode || !pTranslateInfString) return; version_test(); delnode_test(); + translateinfstring_test(); FreeLibrary(hdll); } Index: wine/dlls/advpack/advpack.c diff -u -p wine/dlls/advpack/advpack.c:1.13 wine/dlls/advpack/advpack.c:1.14 --- wine/dlls/advpack/advpack.c:1.13 8 Nov 2005 12:43:35 -0000 +++ wine/dlls/advpack/advpack.c 8 Nov 2005 12:43:35 -0000 @@ -410,16 +410,50 @@ HRESULT WINAPI ExtractFiles ( LPCSTR Cab /*********************************************************************** * TranslateInfString (ADVPACK.@) * - * BUGS - * Unimplemented + * Translates the value of a specified key in an inf file into the + * current locale by expanding string macros. + * + * PARAMS + * pszInfFilename [I] Filename of the inf file. + * pszInstallSection [I] + * pszTranslateSection [I] Inf section where the key exists. + * pszTranslateKey [I] Key to translate. + * pszBuffer [O] Contains the translated string on exit. + * dwBufferSize [I] Size on input of pszBuffer. + * pdwRequiredSize [O] Length of the translated key. + * pvReserved [I] Reserved, must be NULL. + * + * RETURNS + * Success: S_OK. + * Failure: An hresult error code. */ HRESULT WINAPI TranslateInfString(PCSTR pszInfFilename, PCSTR pszInstallSection, PCSTR pszTranslateSection, PCSTR pszTranslateKey, PSTR pszBuffer, DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved) { - FIXME("(%s %s %s %s %p %ld %p %p): stub\n", - debugstr_a(pszInfFilename), debugstr_a(pszInstallSection), - debugstr_a(pszTranslateSection), debugstr_a(pszTranslateKey), - pszBuffer, dwBufferSize,pdwRequiredSize, pvReserved); - return E_FAIL; + HINF hInf; + + TRACE("(%s %s %s %s %p %ld %p %p)\n", + debugstr_a(pszInfFilename), debugstr_a(pszInstallSection), + debugstr_a(pszTranslateSection), debugstr_a(pszTranslateKey), + pszBuffer, dwBufferSize,pdwRequiredSize, pvReserved); + + if (!pszInfFilename || !pszTranslateSection || + !pszTranslateKey || !pdwRequiredSize) + return E_INVALIDARG; + + hInf = SetupOpenInfFileA(pszInfFilename, NULL, INF_STYLE_WIN4, NULL); + if (hInf == INVALID_HANDLE_VALUE) + return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND); + + if (!SetupGetLineTextA(NULL, hInf, pszTranslateSection, pszTranslateKey, + pszBuffer, dwBufferSize, pdwRequiredSize)) + { + if (dwBufferSize < *pdwRequiredSize) + return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER); + + return SPAPI_E_LINE_NOT_FOUND; + } + + return S_OK; }
1
0
0
0
wine/dlls/ole32 compobj.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21158 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 06:43:24 Modified files: dlls/ole32 : compobj.c Log message: Michael Jung <mjung(a)iss.tu-darmstadt.de> Added tracing to CoCreateInstance. Patch:
http://cvs.winehq.org/patch.py?id=21158
Old revision New revision Changes Path 1.165 1.166 +3 -0 wine/dlls/ole32/compobj.c Index: wine/dlls/ole32/compobj.c diff -u -p wine/dlls/ole32/compobj.c:1.165 wine/dlls/ole32/compobj.c:1.166 --- wine/dlls/ole32/compobj.c:1.165 8 Nov 2005 12:43:24 -0000 +++ wine/dlls/ole32/compobj.c 8 Nov 2005 12:43:24 -0000 @@ -1751,6 +1751,9 @@ HRESULT WINAPI CoCreateInstance( HRESULT hres; LPCLASSFACTORY lpclf = 0; + TRACE("(rclsid=%s, pUnkOuter=%p, dwClsContext=%08lx, riid=%s, ppv=%p)\n", debugstr_guid(rclsid), + pUnkOuter, dwClsContext, debugstr_guid(iid), ppv); + if (!COM_CurrentApt()) return CO_E_NOTINITIALIZED; /*
1
0
0
0
wine/dlls/kernel volume.c virtual.c time.c thu ...
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21157 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 05:01:04 Modified files: dlls/kernel : volume.c virtual.c time.c thunk.c thread.c sync.c string.c path.c module.c locale.c heap.c global16.c file16.c file.c environ.c console.c computername.c comm.c Log message: Markus Amsler <markus.amsler(a)oribi.org> Improve c2man Documented-Total count. Changes: - add missing description - add missing returns section - complete missing A/W pairs - reformate comments, to match c2man requirements Patch:
http://cvs.winehq.org/patch.py?id=21157
Old revision New revision Changes Path 1.33 1.34 +4 -0 wine/dlls/kernel/volume.c 1.10 1.11 +21 -3 wine/dlls/kernel/virtual.c 1.56 1.57 +1 -2 wine/dlls/kernel/time.c 1.62 1.63 +11 -0 wine/dlls/kernel/thunk.c 1.31 1.32 +15 -3 wine/dlls/kernel/thread.c 1.90 1.91 +2 -0 wine/dlls/kernel/sync.c 1.12 1.13 +4 -4 wine/dlls/kernel/string.c 1.25 1.26 +2 -0 wine/dlls/kernel/path.c 1.20 1.21 +2 -0 wine/dlls/kernel/module.c 1.68 1.69 +1 -1 wine/dlls/kernel/locale.c 1.19 1.20 +94 -11 wine/dlls/kernel/heap.c 1.14 1.15 +20 -0 wine/dlls/kernel/global16.c 1.14 1.15 +10 -5 wine/dlls/kernel/file16.c 1.44 1.45 +6 -0 wine/dlls/kernel/file.c 1.6 1.7 +1 -1 wine/dlls/kernel/environ.c 1.44 1.45 +11 -21 wine/dlls/kernel/console.c 1.17 1.18 +7 -1 wine/dlls/kernel/computername.c 1.98 1.99 +2 -2 wine/dlls/kernel/comm.c
1
0
0
0
wine/dlls/ntdll time.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21156 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 04:57:50 Modified files: dlls/ntdll : time.c Log message: Mike McCormack <mike(a)codeweavers.com> Add some missing timezones. Patch:
http://cvs.winehq.org/patch.py?id=21156
Old revision New revision Changes Path 1.81 1.82 +42 -0 wine/dlls/ntdll/time.c Index: wine/dlls/ntdll/time.c diff -u -p wine/dlls/ntdll/time.c:1.81 wine/dlls/ntdll/time.c:1.82 --- wine/dlls/ntdll/time.c:1.81 8 Nov 2005 10:57:50 -0000 +++ wine/dlls/ntdll/time.c 8 Nov 2005 10:57:50 -0000 @@ -100,6 +100,9 @@ static const struct tagTZ_INFO TZ_INFO[] {"HST", {'H','a','w','a','i','i','a','n',' ','S','t','a','n','d','a','r','d',' ', 'T','i','m','e','\0'}, 600, 0}, + {"AKST", + {'A','l','a','s','k','a','n',' ','S','t','a','n','d','a','r','d',' ', + 'T','i','m','e',0}, 540, 0 }, {"AKDT", {'A','l','a','s','k','a','n',' ','S','t','a','n','d','a','r','d',' ','T', 'i','m','e','\0'}, 480, 1}, @@ -124,6 +127,9 @@ static const struct tagTZ_INFO TZ_INFO[] {"COT", {'S','A',' ','P','a','c','i','f','i','c',' ','S','t','a','n','d','a','r', 'd',' ','T','i','m','e','\0'}, 300, 0}, + {"PET", + {'S','A',' ','P','a','c','i','f','i','c',' ','S','t','a','n','d','a','r', + 'd',' ','T','i','m','e',0}, 300, 0 }, {"EDT", {'E','a','s','t','e','r','n',' ','S','t','a','n','d','a','r','d',' ','T', 'i','m','e','\0'}, 240, 1}, @@ -142,9 +148,18 @@ static const struct tagTZ_INFO TZ_INFO[] {"CLT", {'P','a','c','i','f','i','c',' ','S','A',' ','S','t','a','n','d','a','r', 'd',' ','T','i','m','e','\0'}, 240, 0}, + {"CLST", + {'P','a','c','i','f','i','c',' ','S','A',' ','S','t','a','n','d','a','r', + 'd',' ','T','i','m','e',0}, 180, 1}, + {"AST", + {'A','t','l','a','n','t','i','c',' ','S','t','a','n','d','a','r','d',' ', + 'T','i','m','e',0}, 240, 0 }, {"NDT", {'N','e','w','f','o','u','n','d','l','a','n','d',' ','S','t','a','n','d', 'a','r','d',' ','T','i','m','e','\0'}, 150, 1}, + {"NST", + {'N','e','w','f','o','u','n','d','l','a','n','d',' ','S','t','a','n','d', + 'a','r','d',' ','T','i','m','e',0}, 210, 0 }, {"BRT", {'B','r','a','z','i','l','i','a','n',' ','S','t','a','n','d','a','r','d', ' ','T','i','m','e','\0'}, 180, 0}, @@ -160,6 +175,9 @@ static const struct tagTZ_INFO TZ_INFO[] {"GST", {'M','i','d','-','A','t','l','a','n','t','i','c',' ','S','t','a','n','d', 'a','r','d',' ','T','i','m','e','\0'}, 120, 0}, + {"AZOT", + {'A','z','o','r','e','s',' ','S','t','a','n','d','a','r','d',' ','T','i', + 'm','e',0}, 60, 0}, {"AZOST", {'A','z','o','r','e','s',' ','S','t','a','n','d','a','r','d',' ','T','i', 'm','e','\0'}, 0, 1}, @@ -230,10 +248,16 @@ static const struct tagTZ_INFO TZ_INFO[] ' ','T','i','m','e','\0'}, -180, 0}, {"IRST", {'I','r','a','n',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e', + 0},-210, 0 }, + {"IRST", + {'I','r','a','n',' ','S','t','a','n','d','a','r','d',' ','T','i','m','e', '\0'}, -270, 1}, {"GST", {'A','r','a','b','i','a','n',' ','S','t','a','n','d','a','r','d',' ','T', 'i','m','e','\0'}, -240, 0}, + {"AZT", + {'C','a','u','c','a','s','u','s',' ','S','t','a','n','d','a','r','d',' ', + 'T','i','m','e',0}, -240, 0 }, {"AZST", {'C','a','u','c','a','s','u','s',' ','S','t','a','n','d','a','r','d',' ', 'T','i','m','e','\0'}, -300, 1}, @@ -270,9 +294,15 @@ static const struct tagTZ_INFO TZ_INFO[] {"ICT", {'S','E',' ','A','s','i','a',' ','S','t','a','n','d','a','r','d',' ','T', 'i','m','e','\0'}, -420, 0}, + {"KRAT", + {'N','o','r','t','h',' ','A','s','i','a',' ','S','t','a','n','d','a','r', + 'd',' ','T','i','m','e',0}, -420, 0}, {"KRAST", {'N','o','r','t','h',' ','A','s','i','a',' ','S','t','a','n','d','a','r', 'd',' ','T','i','m','e','\0'}, -480, 1}, + {"IRKT", + {'N','o','r','t','h',' ','A','s','i','a',' ','E','a','s','t',' ','S','t', + 'a','n','d','a','r','d',' ','T','i','m','e',0}, -480, 0}, {"CST", {'C','h','i','n','a',' ','S','t','a','n','d','a','r','d',' ','T','i','m', 'e','\0'}, -480, 0}, @@ -309,9 +339,18 @@ static const struct tagTZ_INFO TZ_INFO[] {"GST", {'W','e','s','t',' ','P','a','c','i','f','i','c',' ','S','t','a','n','d', 'a','r','d',' ','T','i','m','e','\0'}, -600, 0}, + {"VLAT", + {'V','l','a','d','i','v','o','s','t','o','k',' ','S','t','a','n','d','a', + 'r','d',' ','T','i','m','e',0}, -600, 0 }, + {"ChST", + {'W','e','s','t',' ','P','a','c','i','f','i','c',' ','S','t','a','n','d', + 'a','r','d',' ','T','i','m','e',0}, -600, 0}, {"VLAST", {'V','l','a','d','i','v','o','s','t','o','k',' ','S','t','a','n','d','a', 'r','d',' ','T','i','m','e','\0'}, -660, 1}, + {"MAGT", + {'C','e','n','t','r','a','l',' ','P','a','c','i','f','i','c',' ','S','t', + 'a','n','d','a','r','d',' ','T','i','m','e',0}, -660, 0}, {"MAGST", {'C','e','n','t','r','a','l',' ','P','a','c','i','f','i','c',' ','S','t', 'a','n','d','a','r','d',' ','T','i','m','e','\0'}, -720, 1}, @@ -328,6 +367,9 @@ static const struct tagTZ_INFO TZ_INFO[] {'T','o','n','g','a',' ','S','t','a','n','d','a','r','d',' ','T','i','m', 'e','\0'}, -780, 0}, {"NOVT", + {'N','.',' ','C','e','n','t','r','a','l',' ','A','s','i','a',' ','S','t', + 'a','n','d','a','r','d',' ','T','i','m','e',0 }, -360, 0}, + {"NOVT", {'N','o','v','o','s','i','b','i','r','s','k',' ','S','t','a','n','d','a', 'r','d',' ','T','i','m','e','\0'}, -360, 1}, {"ANAT",
1
0
0
0
wine/dlls/dxdiagn provider.c Makefile.in
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21155 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 04:57:39 Modified files: dlls/dxdiagn : provider.c Makefile.in Log message: Raphael Junqueira <fenix(a)club-internet.fr> - fill DirectShowFilters Container - fix some MLKs (clear variants) Patch:
http://cvs.winehq.org/patch.py?id=21155
Old revision New revision Changes Path 1.11 1.12 +213 -7 wine/dlls/dxdiagn/provider.c 1.6 1.7 +1 -1 wine/dlls/dxdiagn/Makefile.in
1
0
0
0
wine/dlls/crypt32/tests cert.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21154 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 04:57:28 Modified files: dlls/crypt32/tests: cert.c Log message: Saulius Krasuckas <saulius.krasuckas(a)ieee.org> Make Crypt32 tests loadable on Win98. Patch:
http://cvs.winehq.org/patch.py?id=21154
Old revision New revision Changes Path 1.11 1.12 +33 -10 wine/dlls/crypt32/tests/cert.c Index: wine/dlls/crypt32/tests/cert.c diff -u -p wine/dlls/crypt32/tests/cert.c:1.11 wine/dlls/crypt32/tests/cert.c:1.12 --- wine/dlls/crypt32/tests/cert.c:1.11 8 Nov 2005 10:57:28 -0000 +++ wine/dlls/crypt32/tests/cert.c 8 Nov 2005 10:57:28 -0000 @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <assert.h> #include <stdio.h> #include <stdarg.h> #include <windef.h> @@ -40,6 +41,26 @@ struct CertPropIDHeader DWORD cb; }; +static BOOL (WINAPI * pCryptVerifyCertificateSignatureEx) + (HCRYPTPROV, DWORD, DWORD, void *, DWORD, void *, DWORD, void *); + +#define CRYPT_GET_PROC(func) \ + p ## func = (void *)GetProcAddress(hCrypt32, #func); \ + if(!p ## func) \ + trace("GetProcAddress(hCrypt32, \"%s\") failed\n", #func); \ + +static void init_function_pointers(void) +{ + HMODULE hCrypt32; + + pCryptVerifyCertificateSignatureEx = NULL; + + hCrypt32 = GetModuleHandleA("crypt32.dll"); + assert(hCrypt32); + + CRYPT_GET_PROC(CryptVerifyCertificateSignatureEx); +} + static void testCryptHashCert(void) { static const BYTE emptyHash[] = { 0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, @@ -1448,21 +1469,21 @@ static void testVerifyCertSig(HCRYPTPROV DWORD size = 0; BOOL ret; - ret = CryptVerifyCertificateSignatureEx(0, 0, 0, NULL, 0, NULL, 0, NULL); + ret = pCryptVerifyCertificateSignatureEx(0, 0, 0, NULL, 0, NULL, 0, NULL); ok(!ret && GetLastError() == HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), "Expected HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), got %08lx\n", GetLastError()); - ret = CryptVerifyCertificateSignatureEx(csp, 0, 0, NULL, 0, NULL, 0, NULL); + ret = pCryptVerifyCertificateSignatureEx(csp, 0, 0, NULL, 0, NULL, 0, NULL); ok(!ret && GetLastError() == HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), "Expected HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), got %08lx\n", GetLastError()); - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, 0, NULL, 0, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, 0, NULL, 0, NULL, 0, NULL); ok(!ret && GetLastError() == HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), "Expected HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), got %08lx\n", GetLastError()); /* This crashes - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, NULL, 0, NULL, 0, NULL); */ info.ToBeSigned.cbData = toBeSigned->cbData; @@ -1480,25 +1501,25 @@ static void testVerifyCertSig(HCRYPTPROV CRYPT_DATA_BLOB certBlob = { 0, NULL }; PCERT_PUBLIC_KEY_INFO pubKeyInfo = NULL; - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, 0, NULL, 0, NULL); ok(!ret && GetLastError() == CRYPT_E_ASN1_EOD, "Expected CRYPT_E_ASN1_EOD, got %08lx\n", GetLastError()); certBlob.cbData = 1; certBlob.pbData = (void *)0xdeadbeef; - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, 0, NULL, 0, NULL); ok(!ret && GetLastError() == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got %08lx\n", GetLastError()); certBlob.cbData = size; certBlob.pbData = cert; - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, 0, NULL, 0, NULL); ok(!ret && GetLastError() == HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), "Expected HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), got %08lx\n", GetLastError()); - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, CRYPT_VERIFY_CERT_SIGN_ISSUER_NULL, NULL, 0, NULL); ok(!ret && GetLastError() == @@ -1506,7 +1527,7 @@ static void testVerifyCertSig(HCRYPTPROV "Expected HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER), got %08lx\n", GetLastError()); /* This crashes - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, CRYPT_VERIFY_CERT_SIGN_ISSUER_PUBKEY, NULL, 0, NULL); */ @@ -1520,7 +1541,7 @@ static void testVerifyCertSig(HCRYPTPROV ok(ret, "CryptExportKey failed: %08lx\n", GetLastError()); if (ret) { - ret = CryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, + ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING, CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, CRYPT_VERIFY_CERT_SIGN_ISSUER_PUBKEY, pubKeyInfo, 0, NULL); ok(ret, "CryptVerifyCertificateSignatureEx failed: %08lx\n", @@ -1559,6 +1580,8 @@ static void testCertSigs(void) START_TEST(cert) { + init_function_pointers(); + testCryptHashCert(); /* various combinations of CertOpenStore */
1
0
0
0
wine/dlls/winsock/tests sock.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21153 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 04:56:27 Modified files: dlls/winsock/tests: sock.c Log message: Saulius Krasuckas <saulius.krasuckas(a)ieee.org> Added last error code for XP SP1. Patch:
http://cvs.winehq.org/patch.py?id=21153
Old revision New revision Changes Path 1.27 1.28 +3 -3 wine/dlls/winsock/tests/sock.c Index: wine/dlls/winsock/tests/sock.c diff -u -p wine/dlls/winsock/tests/sock.c:1.27 wine/dlls/winsock/tests/sock.c:1.28 --- wine/dlls/winsock/tests/sock.c:1.27 8 Nov 2005 10:56:27 -0000 +++ wine/dlls/winsock/tests/sock.c 8 Nov 2005 10:56:27 -0000 @@ -1223,7 +1223,7 @@ static void test_WSAStringToAddressA(voi ret = WSAStringToAddressA( address3, AF_INET, NULL, (SOCKADDR*)&sockaddr, &len ); GLE = WSAGetLastError(); ok( (ret == 0 && sockaddr.sin_addr.s_addr == 0xffffffff) || - (ret == SOCKET_ERROR && GLE == ERROR_INVALID_PARAMETER), + (ret == SOCKET_ERROR && (GLE == ERROR_INVALID_PARAMETER || GLE == WSAEINVAL)), "WSAStringToAddressA() failed unexpectedly: %d\n", GLE ); len = sizeof(sockaddr); @@ -1241,7 +1241,7 @@ static void test_WSAStringToAddressA(voi ret = WSAStringToAddressA( address5, AF_INET, NULL, (SOCKADDR*)&sockaddr, &len ); GLE = WSAGetLastError(); ok( (ret == 0 && sockaddr.sin_addr.s_addr == 0xffffffff && sockaddr.sin_port == 0xffff) || - (ret == SOCKET_ERROR && GLE == ERROR_INVALID_PARAMETER), + (ret == SOCKET_ERROR && (GLE == ERROR_INVALID_PARAMETER || GLE == WSAEINVAL)), "WSAStringToAddressA() failed unexpectedly: %d\n", GLE ); } @@ -1289,7 +1289,7 @@ static void test_WSAStringToAddressW(voi ret = WSAStringToAddressW( address3, AF_INET, NULL, (SOCKADDR*)&sockaddr, &len ); GLE = WSAGetLastError(); ok( (ret == 0 && sockaddr.sin_addr.s_addr == 0xffffffff) || - (ret == SOCKET_ERROR && GLE == ERROR_INVALID_PARAMETER), + (ret == SOCKET_ERROR && (GLE == ERROR_INVALID_PARAMETER || GLE == WSAEINVAL)), "WSAStringToAddressW() failed unexpectedly: %d\n", GLE ); len = sizeof(sockaddr);
1
0
0
0
wine/dlls/dmloader loader.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21152 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 04:56:13 Modified files: dlls/dmloader : loader.c Log message: Christian Costa <titan.costa(a)wanadoo.fr> Add some checks and fix some stream leaks. Patch:
http://cvs.winehq.org/patch.py?id=21152
Old revision New revision Changes Path 1.20 1.21 +40 -10 wine/dlls/dmloader/loader.c Index: wine/dlls/dmloader/loader.c diff -u -p wine/dlls/dmloader/loader.c:1.20 wine/dlls/dmloader/loader.c:1.21 --- wine/dlls/dmloader/loader.c:1.20 8 Nov 2005 10:56:13 -0000 +++ wine/dlls/dmloader/loader.c 8 Nov 2005 10:56:13 -0000 @@ -194,15 +194,15 @@ HRESULT WINAPI IDirectMusicLoaderImpl_ID /* create stream and associate it with file */ result = DMUSIC_CreateDirectMusicLoaderFileStream ((LPVOID*)&pStream); if (FAILED(result)) { - ERR(": could not create loader stream\n"); + ERR(": could not create file stream\n"); return result; } result = IDirectMusicLoaderFileStream_Attach (pStream, wszFileName, iface); if (FAILED(result)) { - ERR(": could not attach stream to file\n"); + ERR(": could not attach stream to file\n"); + IStream_Release (pStream); return result; } - } else if (pDesc->dwValidData & DMUS_OBJ_MEMORY) { /* load object from resource */ @@ -215,7 +215,8 @@ HRESULT WINAPI IDirectMusicLoaderImpl_ID } result = IDirectMusicLoaderResourceStream_Attach (pStream, pDesc->pbMemData, pDesc->llMemLength, 0, iface); if (FAILED(result)) { - ERR(": could not attach stream to resource\n"); + ERR(": could not attach stream to resource\n"); + IStream_Release (pStream); return result; } } @@ -231,6 +232,7 @@ HRESULT WINAPI IDirectMusicLoaderImpl_ID result = IDirectMusicLoaderGenericStream_Attach (pStream, pDesc->pStream, iface); if (FAILED(result)) { ERR(": failed to attach stream\n"); + IStream_Release (pStream); return result; } } else { @@ -323,6 +325,7 @@ HRESULT WINAPI IDirectMusicLoaderImpl_ID DMUS_OBJECTDESC Desc; struct list *pEntry; LPWINE_LOADER_ENTRY pObjectEntry, pNewEntry; + HRESULT hr; TRACE("(%p, %p): pDesc:\n%s\n", This, pDesc, debugstr_DMUS_OBJECTDESC(pDesc)); @@ -344,21 +347,48 @@ HRESULT WINAPI IDirectMusicLoaderImpl_ID strcpyW(p, pDesc->wszFileName); } /* create stream */ - DMUSIC_CreateDirectMusicLoaderFileStream ((LPVOID*)&pStream); + hr = DMUSIC_CreateDirectMusicLoaderFileStream ((LPVOID*)&pStream); + if (FAILED(hr)) { + ERR(": could not create file stream\n"); + return DMUS_E_LOADER_FAILEDOPEN; + } /* attach stream */ - IDirectMusicLoaderFileStream_Attach (pStream, wszFileName, iface); + hr = IDirectMusicLoaderFileStream_Attach (pStream, wszFileName, iface); + if (FAILED(hr)) { + ERR(": could not attach stream to file\n"); + IStream_Release (pStream); + return DMUS_E_LOADER_FAILEDOPEN; + } } else if (pDesc->dwValidData & DMUS_OBJ_STREAM) { /* create stream */ - DMUSIC_CreateDirectMusicLoaderGenericStream ((LPVOID*)&pStream); + hr = DMUSIC_CreateDirectMusicLoaderGenericStream ((LPVOID*)&pStream); + if (FAILED(hr)) { + ERR(": could not create generic stream\n"); + return DMUS_E_LOADER_FAILEDOPEN; + } /* attach stream */ - IDirectMusicLoaderGenericStream_Attach (pStream, pDesc->pStream, iface); + hr = IDirectMusicLoaderGenericStream_Attach (pStream, pDesc->pStream, iface); + if (FAILED(hr)) { + ERR(": could not attach stream\n"); + IStream_Release (pStream); + return DMUS_E_LOADER_FAILEDOPEN; + } } else if (pDesc->dwValidData & DMUS_OBJ_MEMORY) { /* create stream */ - DMUSIC_CreateDirectMusicLoaderResourceStream ((LPVOID*)&pStream); + hr = DMUSIC_CreateDirectMusicLoaderResourceStream ((LPVOID*)&pStream); + if (FAILED(hr)) { + ERR(": could not create resource stream\n"); + return DMUS_E_LOADER_FAILEDOPEN; + } /* attach stream */ - IDirectMusicLoaderResourceStream_Attach (pStream, pDesc->pbMemData, pDesc->llMemLength, 0, iface); + hr = IDirectMusicLoaderResourceStream_Attach (pStream, pDesc->pbMemData, pDesc->llMemLength, 0, iface); + if (FAILED(hr)) { + ERR(": could not attach stream to resource\n"); + IStream_Release (pStream); + return DMUS_E_LOADER_FAILEDOPEN; + } } else { ERR(": no way to get additional info\n");
1
0
0
0
wine/dlls/ole32 rpc.c
by Alexandre Julliard
08 Nov '05
08 Nov '05
ChangeSet ID: 21151 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/08 04:56:02 Modified files: dlls/ole32 : rpc.c Log message: Robert Shearman <rob(a)codeweavers.com> We shouldn't pass the application name into CreateProcess because the value stored in the registry could include arguments. Patch:
http://cvs.winehq.org/patch.py?id=21151
Old revision New revision Changes Path 1.66 1.67 +9 -11 wine/dlls/ole32/rpc.c Index: wine/dlls/ole32/rpc.c diff -u -p wine/dlls/ole32/rpc.c:1.66 wine/dlls/ole32/rpc.c:1.67 --- wine/dlls/ole32/rpc.c:1.66 8 Nov 2005 10:56: 2 -0000 +++ wine/dlls/ole32/rpc.c 8 Nov 2005 10:56: 2 -0000 @@ -623,10 +623,9 @@ static HRESULT create_server(REFCLSID rc static const WCHAR embedding[] = { ' ', '-','E','m','b','e','d','d','i','n','g',0 }; HKEY hkeyclsid; HKEY key; - HRESULT hres = E_UNEXPECTED; - WCHAR exe[MAX_PATH+1]; - DWORD exelen = sizeof(exe); + HRESULT hres; WCHAR command[MAX_PATH+sizeof(embedding)/sizeof(WCHAR)]; + DWORD size = MAX_PATH+1 * sizeof(WCHAR); STARTUPINFOW sinfo; PROCESS_INFORMATION pinfo; @@ -637,14 +636,14 @@ static HRESULT create_server(REFCLSID rc } hres = RegOpenKeyExW(hkeyclsid, wszLocalServer32, 0, KEY_READ, &key); + RegCloseKey(hkeyclsid); if (hres != ERROR_SUCCESS) { WARN("class %s not registered as LocalServer32\n", debugstr_guid(rclsid)); return REGDB_E_READREGDB; /* Probably */ } - memset(exe,0,sizeof(exe)); - hres= RegQueryValueExW(key, NULL, NULL, NULL, (LPBYTE)exe, &exelen); + hres = RegQueryValueExW(key, NULL, NULL, NULL, (LPBYTE)command, &size); RegCloseKey(key); if (hres) { WARN("No default value for LocalServer32 key\n"); @@ -654,17 +653,16 @@ static HRESULT create_server(REFCLSID rc memset(&sinfo,0,sizeof(sinfo)); sinfo.cb = sizeof(sinfo); - /* EXE servers are started with the -Embedding switch. MSDN also claims /Embedding is used, - * 9x does -Embedding, perhaps an 9x/NT difference? - */ + /* EXE servers are started with the -Embedding switch. */ - strcpyW(command, exe); strcatW(command, embedding); TRACE("activating local server %s for %s\n", debugstr_w(command), debugstr_guid(rclsid)); - if (!CreateProcessW(exe, command, NULL, NULL, FALSE, 0, NULL, NULL, &sinfo, &pinfo)) { - WARN("failed to run local server %s\n", debugstr_w(exe)); + /* FIXME: Win2003 supports a ServerExecutable value that is passed into + * CreateProcess */ + if (!CreateProcessW(NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &sinfo, &pinfo)) { + WARN("failed to run local server %s\n", debugstr_w(command)); return HRESULT_FROM_WIN32(GetLastError()); } CloseHandle(pinfo.hProcess);
1
0
0
0
← Newer
1
...
40
41
42
43
44
45
46
...
58
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
Results per page:
10
25
50
100
200