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
October 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
1207 discussions
Start a n
N
ew thread
Alexandre Julliard : netapi32/tests: Don' t try to get the size of a freed buffer.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: 5b5054c10ed05d8a352a3d09a014650f61b0793c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5b5054c10ed05d8a352a3d09a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Oct 19 16:06:07 2009 +0200 netapi32/tests: Don't try to get the size of a freed buffer. --- dlls/netapi32/tests/apibuf.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/dlls/netapi32/tests/apibuf.c b/dlls/netapi32/tests/apibuf.c index 0972e76..3400726 100644 --- a/dlls/netapi32/tests/apibuf.c +++ b/dlls/netapi32/tests/apibuf.c @@ -54,7 +54,6 @@ static void run_apibuf_tests(void) ok(pNetApiBufferFree(p) == NERR_Success, "Freed\n"); - ok(pNetApiBufferSize(p, &dwSize) == NERR_Success, "Got size\n"); ok(pNetApiBufferSize(NULL, &dwSize) == ERROR_INVALID_PARAMETER, "Error for NULL pointer\n"); /* border reallocate cases */
1
0
0
0
Tommy Schultz Lassen : msvcr71: Add _vscprintf and _vscwprintf.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: 1931173ac8575fb80911e643165bb9ffdea7e4a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1931173ac8575fb80911e6431…
Author: Tommy Schultz Lassen <wine(a)krynn.dk> Date: Sat Oct 17 09:53:16 2009 +0200 msvcr71: Add _vscprintf and _vscwprintf. --- dlls/msvcr71/msvcr71.spec | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcr71/msvcr71.spec b/dlls/msvcr71/msvcr71.spec index 7552ca3..0beec0c 100644 --- a/dlls/msvcr71/msvcr71.spec +++ b/dlls/msvcr71/msvcr71.spec @@ -545,8 +545,8 @@ @ cdecl _unlock(long) msvcrt._unlock @ cdecl _utime(str ptr) msvcrt._utime @ stub _utime64 -@ stub _vscprintf -@ stub _vscwprintf +@ cdecl _vscprintf(str ptr) msvcrt._vscprintf +@ cdecl _vscwprintf(wstr ptr) msvcrt._vscwprintf @ cdecl _vsnprintf(ptr long ptr ptr) msvcrt._vsnprintf @ cdecl _vsnwprintf(ptr long wstr long) msvcrt._vsnwprintf @ cdecl _waccess(wstr long) msvcrt._waccess
1
0
0
0
Jörg Höhle : winecoreaudio: Move ERR&WARN out of OSSpinLock sections.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: f6ac7696af8a93b0b1f645d2013090f2479419c2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f6ac7696af8a93b0b1f645d20…
Author: Jörg Höhle <hoehle(a)users.sourceforge.net> Date: Sat Oct 17 15:25:51 2009 +0200 winecoreaudio: Move ERR&WARN out of OSSpinLock sections. --- dlls/winecoreaudio.drv/audio.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/winecoreaudio.drv/audio.c b/dlls/winecoreaudio.drv/audio.c index e1c4a41..835d1a9 100644 --- a/dlls/winecoreaudio.drv/audio.c +++ b/dlls/winecoreaudio.drv/audio.c @@ -984,8 +984,8 @@ static DWORD wodClose(WORD wDevID, WINE_WAVEOUT_INSTANCE* wwo) OSSpinLockLock(&wwo->lock); if (wwo->lpQueuePtr) { - WARN("buffers still playing !\n"); OSSpinLockUnlock(&wwo->lock); + WARN("buffers still playing !\n"); ret = WAVERR_STILLPLAYING; } else { @@ -1953,8 +1953,8 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags) wwi->format.wf.nChannels, wwi->format.wf.nSamplesPerSec, wwi->format.wBitsPerSample, &frameCount)) { - ERR("AudioUnit_CreateInputUnit failed\n"); OSSpinLockUnlock(&wwi->lock); + ERR("AudioUnit_CreateInputUnit failed\n"); return MMSYSERR_ERROR; } @@ -1963,10 +1963,10 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags) wwi->format.wBitsPerSample, frameCount, TRUE); if (wwi->bufferList == NULL) { - ERR("Failed to allocate buffer list\n"); AudioUnitUninitialize(wwi->audioUnit); AudioUnit_CloseAudioUnit(wwi->audioUnit); OSSpinLockUnlock(&wwi->lock); + ERR("Failed to allocate buffer list\n"); return MMSYSERR_NOMEM; } @@ -1975,11 +1975,11 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags) wwi->bufferListCopy = HeapAlloc(GetProcessHeap(), 0, AUDIOBUFFERLISTSIZE(wwi->bufferList->mNumberBuffers)); if (wwi->bufferListCopy == NULL) { - ERR("Failed to allocate buffer list copy\n"); widHelper_DestroyAudioBufferList(wwi->bufferList); AudioUnitUninitialize(wwi->audioUnit); AudioUnit_CloseAudioUnit(wwi->audioUnit); OSSpinLockUnlock(&wwi->lock); + ERR("Failed to allocate buffer list copy\n"); return MMSYSERR_NOMEM; } memcpy(wwi->bufferListCopy, wwi->bufferList, AUDIOBUFFERLISTSIZE(wwi->bufferList->mNumberBuffers));
1
0
0
0
Hans Leidekker : msi: Get rid of some redundant initializations.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: 534f20bc49741a271df10ef5353de3f4c52ef3a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=534f20bc49741a271df10ef53…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Oct 19 11:14:20 2009 +0200 msi: Get rid of some redundant initializations. --- dlls/msi/database.c | 2 -- dlls/msi/msiquery.c | 2 -- dlls/msi/package.c | 9 --------- dlls/msi/preview.c | 1 - dlls/msi/suminfo.c | 1 - 5 files changed, 0 insertions(+), 15 deletions(-) diff --git a/dlls/msi/database.c b/dlls/msi/database.c index 4db7c01..8d0ee42 100644 --- a/dlls/msi/database.c +++ b/dlls/msi/database.c @@ -191,8 +191,6 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb) db->mode = szMode; if (created) db->deletefile = strdupW( szDBPath ); - else - db->deletefile = NULL; list_init( &db->tables ); list_init( &db->transforms ); diff --git a/dlls/msi/msiquery.c b/dlls/msi/msiquery.c index 5a46f9b..b973382 100644 --- a/dlls/msi/msiquery.c +++ b/dlls/msi/msiquery.c @@ -126,9 +126,7 @@ UINT MSI_DatabaseOpenViewW(MSIDATABASE *db, return ERROR_FUNCTION_FAILED; msiobj_addref( &db->hdr ); - query->row = 0; query->db = db; - query->view = NULL; list_init( &query->mem ); r = MSI_ParseSQL( db, szQuery, &query->view, &query->mem ); diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 9c92842..fa0cd6f 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -744,15 +744,6 @@ static MSIPACKAGE *msi_alloc_package( void ) list_init( &package->RunningActions ); list_init( &package->sourcelist_info ); list_init( &package->sourcelist_media ); - - package->patch = NULL; - package->ActionFormat = NULL; - package->LastAction = NULL; - package->dialog = NULL; - package->next_dialog = NULL; - package->scheduled_action_running = FALSE; - package->commit_action_running = FALSE; - package->rollback_action_running = FALSE; } return package; diff --git a/dlls/msi/preview.c b/dlls/msi/preview.c index a2b3f32..458e4a1 100644 --- a/dlls/msi/preview.c +++ b/dlls/msi/preview.c @@ -54,7 +54,6 @@ static MSIPREVIEW *MSI_EnableUIPreview( MSIDATABASE *db ) if( preview ) { preview->package = package; - preview->dialog = 0; msiobj_addref( &package->hdr ); } msiobj_release( &package->hdr ); diff --git a/dlls/msi/suminfo.c b/dlls/msi/suminfo.c index ef16665..d3db44a 100644 --- a/dlls/msi/suminfo.c +++ b/dlls/msi/suminfo.c @@ -443,7 +443,6 @@ MSISUMMARYINFO *MSI_GetSummaryInformationW( IStorage *stg, UINT uiUpdateCount ) if( !si ) return si; - memset( si->property, 0, sizeof si->property ); si->update_count = uiUpdateCount; IStorage_AddRef( stg ); si->storage = stg;
1
0
0
0
Hans Leidekker : msi: Allocate MSISCRIPT structure at package creation time .
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: b7a81df4522c1fba50f609af3d9dda95f8ee1364 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b7a81df4522c1fba50f609af3…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Oct 19 11:13:54 2009 +0200 msi: Allocate MSISCRIPT structure at package creation time. --- dlls/msi/action.c | 1 - dlls/msi/package.c | 1 + 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index e08f25a..e108701 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -6394,7 +6394,6 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath, MSI_SetPropertyW(package, szAction, szInstall); - package->script = msi_alloc_zero(sizeof(MSISCRIPT)); package->script->InWhatSequence = SEQUENCE_INSTALL; if (szPackagePath) diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 06e3416..9c92842 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -969,6 +969,7 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage) MSI_SetPropertyW( package, OriginalDatabase, fullpath ); } + package->script = msi_alloc_zero( sizeof(MSISCRIPT) ); *pPackage = package; return ERROR_SUCCESS;
1
0
0
0
Andrew Eikum : mshtml: Reimplement HTMLLocation::get_pathname.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: a03d0bcaa98ee9697962322984188b2bd67c42fc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a03d0bcaa98ee969796232298…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri Oct 16 11:45:37 2009 -0500 mshtml: Reimplement HTMLLocation::get_pathname. --- dlls/mshtml/htmllocation.c | 27 ++++++--------------------- dlls/mshtml/tests/htmllocation.c | 8 ++++---- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/dlls/mshtml/htmllocation.c b/dlls/mshtml/htmllocation.c index 4655a63..5f09958 100644 --- a/dlls/mshtml/htmllocation.c +++ b/dlls/mshtml/htmllocation.c @@ -428,10 +428,7 @@ static HRESULT WINAPI HTMLLocation_put_pathname(IHTMLLocation *iface, BSTR v) static HRESULT WINAPI HTMLLocation_get_pathname(IHTMLLocation *iface, BSTR *p) { HTMLLocation *This = HTMLLOCATION_THIS(iface); - WCHAR buf[INTERNET_MAX_PATH_LENGTH]; - URL_COMPONENTSW url = {sizeof(url)}; - const WCHAR *doc_url; - DWORD size = 0; + URL_COMPONENTSW url = {sizeof(URL_COMPONENTSW)}; HRESULT hres; TRACE("(%p)->(%p)\n", This, p); @@ -439,29 +436,17 @@ static HRESULT WINAPI HTMLLocation_get_pathname(IHTMLLocation *iface, BSTR *p) if(!p) return E_POINTER; - hres = get_url(This, &doc_url); - if(FAILED(hres)) - return hres; - - hres = CoInternetParseUrl(doc_url, PARSE_PATH_FROM_URL, 0, buf, sizeof(buf), &size, 0); - if(SUCCEEDED(hres)) { - *p = SysAllocString(buf); - if(!*p) - return E_OUTOFMEMORY; - return S_OK; - } - url.dwUrlPathLength = 1; + url.dwExtraInfoLength = 1; hres = get_url_components(This, &url); if(FAILED(hres)) return hres; - if(!url.dwUrlPathLength) { - *p = NULL; - return S_OK; - } + if(url.dwUrlPathLength && url.lpszUrlPath[0] == '/') + *p = SysAllocStringLen(url.lpszUrlPath + 1, url.dwUrlPathLength - 1); + else + *p = SysAllocStringLen(url.lpszUrlPath, url.dwUrlPathLength); - *p = SysAllocStringLen(url.lpszUrlPath, url.dwUrlPathLength); if(!*p) return E_OUTOFMEMORY; return S_OK; diff --git a/dlls/mshtml/tests/htmllocation.c b/dlls/mshtml/tests/htmllocation.c index 671d460..e4d545e 100644 --- a/dlls/mshtml/tests/htmllocation.c +++ b/dlls/mshtml/tests/htmllocation.c @@ -61,7 +61,7 @@ static const struct location_test http_test = { "
www.winehq.org:80
", TRUE, "
www.winehq.org
", TRUE, "80", TRUE, - "", FALSE, + "", TRUE, "?search", FALSE, "#hash", FALSE }; @@ -75,7 +75,7 @@ static const struct location_test http_file_test = { "
www.winehq.org:80
", TRUE, "
www.winehq.org
", TRUE, "80", TRUE, - "file", FALSE, + "file", TRUE, "?search", FALSE, "#hash", FALSE }; @@ -89,7 +89,7 @@ static const struct location_test ftp_test = { "ftp.winehq.org:21", TRUE, "
ftp.winehq.org
", TRUE, "21", TRUE, - "", FALSE, + "", TRUE, NULL, FALSE, NULL, FALSE }; @@ -103,7 +103,7 @@ static const struct location_test ftp_file_test = { "ftp.winehq.org:21", TRUE, "
ftp.winehq.org
", TRUE, "21", TRUE, - "file", FALSE, + "file", TRUE, NULL, FALSE, NULL, FALSE };
1
0
0
0
Andrew Eikum : mshtml: Reimplement IHTMLLocation::get_href.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: 6a456fa6d9c6b495b25873d2288d9240de05195d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6a456fa6d9c6b495b25873d22…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri Oct 16 11:45:34 2009 -0500 mshtml: Reimplement IHTMLLocation::get_href. --- dlls/mshtml/htmllocation.c | 93 +++++++++++++++++++++++++++++++++++-- dlls/mshtml/tests/htmllocation.c | 4 +- 2 files changed, 90 insertions(+), 7 deletions(-) diff --git a/dlls/mshtml/htmllocation.c b/dlls/mshtml/htmllocation.c index e21ec76..4655a63 100644 --- a/dlls/mshtml/htmllocation.c +++ b/dlls/mshtml/htmllocation.c @@ -165,20 +165,103 @@ static HRESULT WINAPI HTMLLocation_put_href(IHTMLLocation *iface, BSTR v) static HRESULT WINAPI HTMLLocation_get_href(IHTMLLocation *iface, BSTR *p) { HTMLLocation *This = HTMLLOCATION_THIS(iface); - const WCHAR *url; - HRESULT hres; + URL_COMPONENTSW url = {sizeof(URL_COMPONENTSW)}; + WCHAR *buf = NULL, *url_path = NULL; + HRESULT hres, ret; + DWORD len = 0; + int i; TRACE("(%p)->(%p)\n", This, p); if(!p) return E_POINTER; - hres = get_url(This, &url); + url.dwSchemeLength = 1; + url.dwHostNameLength = 1; + url.dwUrlPathLength = 1; + url.dwExtraInfoLength = 1; + hres = get_url_components(This, &url); if(FAILED(hres)) return hres; - *p = SysAllocString(url); - return *p ? S_OK : E_OUTOFMEMORY; + switch(url.nScheme) { + case INTERNET_SCHEME_FILE: + { + /* prepend a slash */ + url_path = HeapAlloc(GetProcessHeap(), 0, (url.dwUrlPathLength + 1) * sizeof(WCHAR)); + if(!url_path) + return E_OUTOFMEMORY; + url_path[0] = '/'; + memcpy(url_path + 1, url.lpszUrlPath, url.dwUrlPathLength * sizeof(WCHAR)); + url.lpszUrlPath = url_path; + url.dwUrlPathLength = url.dwUrlPathLength + 1; + } + break; + + case INTERNET_SCHEME_HTTP: + case INTERNET_SCHEME_HTTPS: + case INTERNET_SCHEME_FTP: + if(!url.dwUrlPathLength) { + /* add a slash if it's blank */ + url_path = url.lpszUrlPath = HeapAlloc(GetProcessHeap(), 0, 1 * sizeof(WCHAR)); + if(!url.lpszUrlPath) + return E_OUTOFMEMORY; + url.lpszUrlPath[0] = '/'; + url.dwUrlPathLength = 1; + } + break; + + default: + break; + } + + /* replace \ with / */ + for(i = 0; i < url.dwUrlPathLength; ++i) + if(url.lpszUrlPath[i] == '\\') + url.lpszUrlPath[i] = '/'; + + if(InternetCreateUrlW(&url, ICU_ESCAPE, NULL, &len)) { + FIXME("InternetCreateUrl succeeded with NULL buffer?\n"); + ret = E_FAIL; + goto cleanup; + } + + if(GetLastError() != ERROR_INSUFFICIENT_BUFFER) { + FIXME("InternetCreateUrl failed with error: %08x\n", GetLastError()); + SetLastError(0); + ret = E_FAIL; + goto cleanup; + } + SetLastError(0); + + buf = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); + if(!buf) { + ret = E_OUTOFMEMORY; + goto cleanup; + } + + if(!InternetCreateUrlW(&url, ICU_ESCAPE, buf, &len)) { + FIXME("InternetCreateUrl failed with error: %08x\n", GetLastError()); + SetLastError(0); + ret = E_FAIL; + goto cleanup; + } + + *p = SysAllocStringLen(buf, len); + if(!*p) { + ret = E_OUTOFMEMORY; + goto cleanup; + } + + ret = S_OK; + +cleanup: + if(buf) + HeapFree(GetProcessHeap(), 0, buf); + if(url_path) + HeapFree(GetProcessHeap(), 0, url_path); + + return ret; } static HRESULT WINAPI HTMLLocation_put_protocol(IHTMLLocation *iface, BSTR v) diff --git a/dlls/mshtml/tests/htmllocation.c b/dlls/mshtml/tests/htmllocation.c index 8cd7e1d..671d460 100644 --- a/dlls/mshtml/tests/htmllocation.c +++ b/dlls/mshtml/tests/htmllocation.c @@ -56,7 +56,7 @@ static const WCHAR http_url[] = {'h','t','t','p',':','/','/','w','w','w','.','w' static const struct location_test http_test = { "HTTP", http_url, - "
http://www.winehq.org/?search#hash
", FALSE, + "
http://www.winehq.org/?search#hash
", TRUE, "http:", TRUE, "
www.winehq.org:80
", TRUE, "
www.winehq.org
", TRUE, @@ -112,7 +112,7 @@ static const WCHAR file_url[] = {'f','i','l','e',':','/','/','C',':','\\','w','i static const struct location_test file_test = { "FILE", file_url, - "file:///C:/windows/win.ini", FALSE, + "file:///C:/windows/win.ini", TRUE, "file:", TRUE, NULL, TRUE, NULL, TRUE,
1
0
0
0
Charles Davis : ntdll: Implement DVD_ReadStructure() on Mac OS.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: 192a838cd0c751f1f81cc0847777fe137910ef6f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=192a838cd0c751f1f81cc0847…
Author: Charles Davis <cdavis(a)mymail.mines.edu> Date: Fri Oct 16 13:57:18 2009 -0600 ntdll: Implement DVD_ReadStructure() on Mac OS. --- dlls/ntdll/cdrom.c | 134 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 126 insertions(+), 8 deletions(-) diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c index 5caf8b0..3e520ec 100644 --- a/dlls/ntdll/cdrom.c +++ b/dlls/ntdll/cdrom.c @@ -181,12 +181,14 @@ static const char *iocodex(DWORD code) #define MSF_OF_FRAME(m,fr) {int f=(fr); ((UCHAR *)&(m))[2]=f%CD_FRAMES;f/=CD_FRAMES;((UCHAR *)&(m))[1]=f%CD_SECS;((UCHAR *)&(m))[0]=f/CD_SECS;} /* The documented format of DVD_LAYER_DESCRIPTOR is wrong. Even the format in the - * DDK's header is wrong. There are four bytes at the start which always seem to - * follow the sequence "02 08 00 00". + * DDK's header is wrong. There are four bytes at the start defined by + * MMC-5. The first two are the size of the structure in big-endian order as + * defined by MMC-5. The other two are reserved. */ typedef struct { - UCHAR MagicHeader[4]; + UCHAR DataLength[2]; + UCHAR Reserved0[2]; UCHAR BookVersion : 4; UCHAR BookType : 4; UCHAR MinimumRate : 4; @@ -2329,7 +2331,7 @@ static NTSTATUS DVD_GetRegion(int dev, PDVD_REGION region) } /****************************************************************** - * DVD_GetRegion + * DVD_ReadStructure * * */ @@ -2390,10 +2392,10 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure, internal_dvd_layer_descriptor *p = (internal_dvd_layer_descriptor *) layer; struct dvd_layer *l = &s.physical.layer[s.physical.layer_num]; - p->MagicHeader[0] = 2; - p->MagicHeader[1] = 8; - p->MagicHeader[2] = 0; - p->MagicHeader[3] = 0; + p->DataLength[0] = 2; + p->DataLength[1] = 8; + p->Reserved0[0] = 0; + p->Reserved0[1] = 0; p->BookVersion = l->book_version; p->BookType = l->book_type; p->MinimumRate = l->min_rate; @@ -2450,6 +2452,122 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure, case DvdMaxDescriptor: /* Suppress warning */ break; } +#elif defined(__APPLE__) + NTSTATUS ret = STATUS_NOT_SUPPORTED; + dk_dvd_read_structure_t dvdrs; + union + { + DVDPhysicalFormatInfo phys; + DVDCopyrightInfo copy; + DVDDiscKeyInfo disk_key; + DVDManufacturingInfo manf; + } desc; + union + { + PDVD_LAYER_DESCRIPTOR layer; + internal_dvd_layer_descriptor *xlayer; + PDVD_COPYRIGHT_DESCRIPTOR copy; + PDVD_DISK_KEY_DESCRIPTOR disk_key; + PDVD_MANUFACTURER_DESCRIPTOR manf; + } nt_desc; + + nt_desc.layer = layer; + dvdrs.address = (uint32_t)(structure->BlockByteOffset.QuadPart>>11); + dvdrs.grantID = (uint8_t)structure->SessionId; + dvdrs.layer = structure->LayerNumber; + switch(structure->Format) + { + case DvdPhysicalDescriptor: + dvdrs.format = kDVDStructureFormatPhysicalFormatInfo; + dvdrs.bufferLength = sizeof(desc.phys); + dvdrs.buffer = &desc.phys; + break; + + case DvdCopyrightDescriptor: + dvdrs.format = kDVDStructureFormatCopyrightInfo; + dvdrs.bufferLength = sizeof(desc.copy); + dvdrs.buffer = &desc.copy; + break; + + case DvdDiskKeyDescriptor: + dvdrs.format = kDVDStructureFormatDiscKeyInfo; + dvdrs.bufferLength = sizeof(desc.disk_key); + dvdrs.buffer = &desc.disk_key; + break; + + case DvdBCADescriptor: + FIXME("DvdBCADescriptor NIY\n"); + return STATUS_NOT_SUPPORTED; + + case DvdManufacturerDescriptor: + dvdrs.format = kDVDStructureFormatManufacturingInfo; + dvdrs.bufferLength = sizeof(desc.manf); + dvdrs.buffer = &desc.manf; + break; + + case DvdMaxDescriptor: + default: + FIXME("got unknown structure type 0x%x\n", structure->Format); + return STATUS_NOT_SUPPORTED; + } + ret = CDROM_GetStatusCode(ioctl(dev, DKIOCDVDREADSTRUCTURE, &dvdrs)); + if(ret == STATUS_SUCCESS) + { + switch(structure->Format) + { + case DvdPhysicalDescriptor: + nt_desc.xlayer->DataLength[0] = 2; + nt_desc.xlayer->DataLength[1] = 8; + nt_desc.xlayer->Reserved0[0] = 0; + nt_desc.xlayer->Reserved0[1] = 0; + nt_desc.xlayer->BookVersion = desc.phys.partVersion; + nt_desc.xlayer->BookType = desc.phys.bookType; + nt_desc.xlayer->MinimumRate = desc.phys.minimumRate; + nt_desc.xlayer->DiskSize = desc.phys.discSize; + nt_desc.xlayer->LayerType = desc.phys.layerType; + nt_desc.xlayer->TrackPath = desc.phys.trackPath; + nt_desc.xlayer->NumberOfLayers = desc.phys.numberOfLayers; + nt_desc.xlayer->Reserved1 = 0; + nt_desc.xlayer->TrackDensity = desc.phys.trackDensity; + nt_desc.xlayer->LinearDensity = desc.phys.linearDensity; + nt_desc.xlayer->BCAFlag = desc.phys.bcaFlag; + nt_desc.xlayer->StartingDataSector = OSReadBigInt32(&desc.phys.zero1, 0); + nt_desc.xlayer->EndDataSector = OSReadBigInt32(&desc.phys.zero2, 0); + nt_desc.xlayer->EndLayerZeroSector = OSReadBigInt32(&desc.phys.zero3, 0); + nt_desc.xlayer->Reserved5 = 0; + nt_desc.xlayer->Reserved6 = 0; + break; + + case DvdCopyrightDescriptor: + nt_desc.copy->CopyrightProtectionType = + desc.copy.copyrightProtectionSystemType; + nt_desc.copy->RegionManagementInformation = + desc.copy.regionMask; + nt_desc.copy->Reserved = 0; + break; + + case DvdDiskKeyDescriptor: + memcpy( + nt_desc.disk_key->DiskKeyData, + desc.disk_key.discKeyStructures, + 2048); + break; + + case DvdManufacturerDescriptor: + memcpy( + nt_desc.manf->ManufacturingInformation, + desc.manf.discManufacturingInfo, + 2048); + break; + + case DvdBCADescriptor: + case DvdMaxDescriptor: + default: + /* Silence warning */ + break; + } + } + return ret; #else FIXME("\n"); #endif
1
0
0
0
Charles Davis : ntdll: Implement DVD_ReadKey() on Mac OS.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: 71f430e7400aa2f63c5b041d42e3506002946c1a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=71f430e7400aa2f63c5b041d4…
Author: Charles Davis <cdavis(a)mymail.mines.edu> Date: Fri Oct 16 13:57:11 2009 -0600 ntdll: Implement DVD_ReadKey() on Mac OS. --- dlls/ntdll/cdrom.c | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 148 insertions(+), 0 deletions(-) diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c index fbb7828..5caf8b0 100644 --- a/dlls/ntdll/cdrom.c +++ b/dlls/ntdll/cdrom.c @@ -2162,6 +2162,154 @@ static NTSTATUS DVD_ReadKey(int fd, PDVD_COPY_PROTECT_KEY key) #elif defined(__FreeBSD__) || defined(__NetBSD__) TRACE("bsd\n"); return STATUS_NOT_SUPPORTED; +#elif defined(__APPLE__) + union + { + dk_dvd_report_key_t key; + dk_dvd_read_structure_t disk_key; + } ioc; + union + { + DVDDiscKeyInfo disk_key; + DVDChallengeKeyInfo chal; + DVDKey1Info key1; + DVDTitleKeyInfo title; + DVDAuthenticationSuccessFlagInfo asf; + DVDRegionPlaybackControlInfo rpc; + } desc; + NTSTATUS ret = STATUS_NOT_SUPPORTED; + + switch(key->KeyType) + { + case DvdChallengeKey: + ioc.key.format = kDVDKeyFormatChallengeKey; + ioc.key.grantID = (uint8_t)key->SessionId; + ioc.key.keyClass = kDVDKeyClassCSS_CPPM_CPRM; + ioc.key.bufferLength = sizeof(desc.chal); + ioc.key.buffer = &desc.chal; + OSWriteBigInt16(desc.chal.dataLength, 0, key->KeyLength); + break; + case DvdBusKey1: + ioc.key.format = kDVDKeyFormatKey1; + ioc.key.grantID = (uint8_t)key->SessionId; + ioc.key.keyClass = kDVDKeyClassCSS_CPPM_CPRM; + ioc.key.bufferLength = sizeof(desc.key1); + ioc.key.buffer = &desc.key1; + OSWriteBigInt16(desc.key1.dataLength, 0, key->KeyLength); + break; + case DvdTitleKey: + ioc.key.format = kDVDKeyFormatTitleKey; + ioc.key.grantID = (uint8_t)key->SessionId; + ioc.key.keyClass = kDVDKeyClassCSS_CPPM_CPRM; + ioc.key.bufferLength = sizeof(desc.title); + ioc.key.buffer = &desc.title; + ioc.key.address = (uint32_t)(key->Parameters.TitleOffset.QuadPart>>11); + OSWriteBigInt16(desc.title.dataLength, 0, key->KeyLength); + break; + case DvdAsf: + ioc.key.format = kDVDKeyFormatASF; + ioc.key.grantID = (uint8_t)key->SessionId; + ioc.key.keyClass = kDVDKeyClassCSS_CPPM_CPRM; + ioc.key.bufferLength = sizeof(desc.asf); + ioc.key.buffer = &desc.asf; + OSWriteBigInt16(desc.asf.dataLength, 0, key->KeyLength); + break; + case DvdGetRpcKey: + ioc.key.format = kDVDKeyFormatRegionState; + ioc.key.grantID = (uint8_t)key->SessionId; + ioc.key.keyClass = kDVDKeyClassCSS_CPPM_CPRM; + ioc.key.bufferLength = sizeof(desc.rpc); + ioc.key.buffer = &desc.rpc; + OSWriteBigInt16(desc.rpc.dataLength, 0, key->KeyLength); + break; + case DvdDiskKey: + ioc.disk_key.format = kDVDStructureFormatDiscKeyInfo; + ioc.disk_key.grantID = (uint8_t)key->SessionId; + ioc.disk_key.bufferLength = sizeof(desc.disk_key); + ioc.disk_key.buffer = &desc.disk_key; + break; + case DvdInvalidateAGID: + ioc.key.format = kDVDKeyFormatAGID_Invalidate; + ioc.key.grantID = (uint8_t)key->SessionId; + ioc.key.keyClass = kDVDKeyClassCSS_CPPM_CPRM; + break; + case DvdBusKey2: + case DvdSetRpcKey: + ERR("attempted to read write-only key type 0x%x\n", key->KeyType); + return STATUS_NOT_SUPPORTED; + default: + FIXME("got unknown key type 0x%x\n", key->KeyType); + return STATUS_NOT_SUPPORTED; + } + + ret = CDROM_GetStatusCode(ioctl(fd, (key->KeyType == DvdDiskKey ? DKIOCDVDREADSTRUCTURE : DKIOCDVDREPORTKEY), &ioc)); + + if (ret == STATUS_SUCCESS) + { + switch(key->KeyType) + { + case DvdChallengeKey: + key->KeyLength = OSReadBigInt16(desc.chal.dataLength, 0); + memcpy(key->KeyData, desc.chal.challengeKeyValue, key->KeyLength); + break; + case DvdBusKey1: + key->KeyLength = OSReadBigInt16(desc.key1.dataLength, 0); + memcpy(key->KeyData, desc.key1.key1Value, key->KeyLength); + break; + case DvdTitleKey: + key->KeyLength = OSReadBigInt16(desc.title.dataLength, 0); + memcpy(key->KeyData, desc.title.titleKeyValue, key->KeyLength); + key->KeyFlags = 0; + if (desc.title.CPM) + { + /*key->KeyFlags |= DVD_COPYRIGHTED;*/ + if (desc.title.CP_SEC) key->KeyFlags |= DVD_SECTOR_PROTECTED; + /*else key->KeyFlags |= DVD_SECTOR_NOT_PROTECTED;*/ +#if 0 + switch (desc.title.CGMS) + { + case 0: + key->KeyFlags |= DVD_CGMS_COPY_PERMITTED; + break; + case 2: + key->KeyFlags |= DVD_CGMS_COPY_ONCE; + break; + case 3: + key->KeyFlags |= DVD_CGMS_NO_COPY; + break; + } +#endif + } /*else key->KeyFlags |= DVD_NOT_COPYRIGHTED;*/ + break; + case DvdAsf: + key->KeyLength = OSReadBigInt16(desc.title.dataLength, 0); + ((PDVD_ASF)key->KeyData)->SuccessFlag = desc.asf.successFlag; + break; + case DvdGetRpcKey: + key->KeyLength = OSReadBigInt16(desc.rpc.dataLength, 0); + ((PDVD_RPC_KEY)key->KeyData)->UserResetsAvailable = + desc.rpc.numberUserResets; + ((PDVD_RPC_KEY)key->KeyData)->ManufacturerResetsAvailable = + desc.rpc.numberVendorResets; + ((PDVD_RPC_KEY)key->KeyData)->TypeCode = + desc.rpc.typeCode; + ((PDVD_RPC_KEY)key->KeyData)->RegionMask = + desc.rpc.driveRegion; + ((PDVD_RPC_KEY)key->KeyData)->RpcScheme = + desc.rpc.rpcScheme; + case DvdDiskKey: + key->KeyLength = OSReadBigInt16(desc.disk_key.dataLength, 0); + memcpy(key->KeyData, desc.disk_key.discKeyStructures, key->KeyLength); + break; + case DvdBusKey2: + case DvdSetRpcKey: + case DvdInvalidateAGID: + default: + /* Silence warning */ + ; + } + } + return ret; #else TRACE("outside\n"); return STATUS_NOT_SUPPORTED;
1
0
0
0
Charles Davis : ntdll: Implement DVD_SendKey() on Mac OS.
by Alexandre Julliard
19 Oct '09
19 Oct '09
Module: wine Branch: master Commit: 7b0ba554ef832f98c8ccf871c059676237c3825f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b0ba554ef832f98c8ccf871c…
Author: Charles Davis <cdavis(a)mymail.mines.edu> Date: Fri Oct 16 13:57:06 2009 -0600 ntdll: Implement DVD_SendKey() on Mac OS. --- dlls/ntdll/cdrom.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c index 3094eda..fbb7828 100644 --- a/dlls/ntdll/cdrom.c +++ b/dlls/ntdll/cdrom.c @@ -77,6 +77,7 @@ #endif #ifdef HAVE_IOKIT_IOKITLIB_H +# include <libkern/OSByteOrder.h> # include <sys/disk.h> # include <IOKit/IOKitLib.h> # include <IOKit/storage/IOMedia.h> @@ -2025,6 +2026,51 @@ static NTSTATUS DVD_SendKey(int fd, const DVD_COPY_PROTECT_KEY *key) FIXME("Unknown Keytype 0x%x\n",key->KeyType); } return ret; +#elif defined(__APPLE__) + dk_dvd_send_key_t dvdsk; + union + { + DVDChallengeKeyInfo chal; + DVDKey2Info key2; + } key_desc; + + switch(key->KeyType) + { + case DvdChallengeKey: + dvdsk.format = kDVDKeyFormatChallengeKey; + dvdsk.bufferLength = sizeof(key_desc.chal); + dvdsk.buffer = &key_desc.chal; + OSWriteBigInt16(key_desc.chal.dataLength, 0, key->KeyLength); + memcpy(key_desc.chal.challengeKeyValue, key->KeyData, key->KeyLength); + break; + case DvdBusKey2: + dvdsk.format = kDVDKeyFormatKey2; + dvdsk.bufferLength = sizeof(key_desc.key2); + dvdsk.buffer = &key_desc.key2; + OSWriteBigInt16(key_desc.key2.dataLength, 0, key->KeyLength); + memcpy(key_desc.key2.key2Value, key->KeyData, key->KeyLength); + break; + case DvdInvalidateAGID: + dvdsk.format = kDVDKeyFormatAGID_Invalidate; + break; + case DvdBusKey1: + case DvdTitleKey: + case DvdAsf: + case DvdGetRpcKey: + case DvdDiskKey: + ERR("attempted to write read-only key type 0x%x\n", key->KeyType); + return STATUS_NOT_SUPPORTED; + case DvdSetRpcKey: + FIXME("DvdSetRpcKey NIY\n"); + return STATUS_NOT_SUPPORTED; + default: + FIXME("got unknown key type 0x%x\n", key->KeyType); + return STATUS_NOT_SUPPORTED; + } + dvdsk.keyClass = kDVDKeyClassCSS_CPPM_CPRM; + dvdsk.grantID = (uint8_t)key->SessionId; + + return CDROM_GetStatusCode(ioctl(fd, DKIOCDVDSENDKEY, &dvdsk)); #else FIXME("unsupported on this platform\n"); return STATUS_NOT_SUPPORTED;
1
0
0
0
← Newer
1
...
46
47
48
49
50
51
52
...
121
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
Results per page:
10
25
50
100
200