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
January 2012
----- 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
972 discussions
Start a n
N
ew thread
Alexandre Julliard : wininet: Don't free name before the IPv6 lookup.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: 2329f91998c6c61ba6960e9d6dfd62a7a014a640 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2329f91998c6c61ba6960e9d6…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 11 20:09:42 2012 +0100 wininet: Don't free name before the IPv6 lookup. --- dlls/wininet/utility.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/wininet/utility.c b/dlls/wininet/utility.c index 96b8d31..9a70e62 100644 --- a/dlls/wininet/utility.c +++ b/dlls/wininet/utility.c @@ -184,17 +184,17 @@ BOOL GetAddress(LPCWSTR lpszServerName, INTERNET_PORT nServerPort, hints.ai_family = AF_INET; ret = getaddrinfo( name, NULL, &hints, &res ); - heap_free( name ); if (ret != 0) { TRACE("failed to get IPv4 address of %s (%s), retrying with IPv6\n", debugstr_w(lpszServerName), gai_strerror(ret)); hints.ai_family = AF_INET6; ret = getaddrinfo( name, NULL, &hints, &res ); - if (ret != 0) - { - TRACE("failed to get address of %s (%s)\n", debugstr_w(lpszServerName), gai_strerror(ret)); - return FALSE; - } + } + heap_free( name ); + if (ret != 0) + { + TRACE("failed to get address of %s (%s)\n", debugstr_w(lpszServerName), gai_strerror(ret)); + return FALSE; } if (*sa_len < res->ai_addrlen) {
1
0
0
0
Jörg Höhle : winmm: GetCurrentPadding is superfluous while recording.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: d8d4aed8453aa56c091485e89958e6082d83800e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d8d4aed8453aa56c091485e89…
Author: Jörg Höhle <hoehle(a)users.sourceforge.net> Date: Mon Jan 9 18:40:51 2012 +0100 winmm: GetCurrentPadding is superfluous while recording. --- dlls/winmm/waveform.c | 38 +++++++++++++------------------------- 1 files changed, 13 insertions(+), 25 deletions(-) diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index fe07e9e..383c75f 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -1453,19 +1453,11 @@ static void WID_PullACMData(WINMM_Device *device) MMRESULT mr; if(device->acm_hdr.cbDstLength == 0){ - hr = IAudioClient_GetCurrentPadding(device->client, &packet); - if(FAILED(hr)){ - ERR("GetCurrentPadding failed: %08x\n", hr); - return; - } - - if(packet == 0) - return; - hr = IAudioCaptureClient_GetBuffer(device->capture, &data, &packet, &flags, NULL, NULL); - if(FAILED(hr)){ - ERR("GetBuffer failed: %08x\n", hr); + if(hr != S_OK){ + if(FAILED(hr)) + ERR("GetBuffer failed: %08x\n", hr); return; } @@ -1566,26 +1558,20 @@ static void WID_PullData(WINMM_Device *device) while(device->first){ BYTE *data; - UINT32 pad, packet_len, packet; + UINT32 packet_len, packet; DWORD flags; - hr = IAudioClient_GetCurrentPadding(device->client, &pad); - if(FAILED(hr)){ - ERR("GetCurrentPadding failed: %08x\n", hr); - goto exit; - } - - if(pad == 0) - goto exit; - - hr = IAudioCaptureClient_GetBuffer(device->capture, &data, &packet, + hr = IAudioCaptureClient_GetBuffer(device->capture, &data, &packet_len, &flags, NULL, NULL); - if(FAILED(hr)){ - ERR("GetBuffer failed: %08x\n", hr); + if(hr != S_OK){ + if(FAILED(hr)) + ERR("GetBuffer failed: %08x\n", hr); + else /* AUDCLNT_S_BUFFER_EMPTY success code */ + IAudioCaptureClient_ReleaseBuffer(device->capture, 0); goto exit; } - packet_len = packet; + packet = packet_len; queue = device->first; while(queue && packet > 0){ UINT32 to_copy_bytes; @@ -1612,6 +1598,8 @@ static void WID_PullData(WINMM_Device *device) if(FAILED(hr)) ERR("ReleaseBuffer failed: %08x\n", hr); + if(packet > 0) + WARN("losing %u frames\n", packet); device->played_frames += packet_len; }
1
0
0
0
Jacek Caban : mshtml: Get rid of wrapped nsurl.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: 88d75f1107f03a5b8ccc8304ba846fb81865788f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=88d75f1107f03a5b8ccc8304b…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 11 19:41:42 2012 +0100 mshtml: Get rid of wrapped nsurl. --- dlls/mshtml/nsio.c | 61 ++++----------------------------------------------- 1 files changed, 5 insertions(+), 56 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 4ef2752..2ea7efd 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -59,7 +59,6 @@ struct nsWineURI { LONG ref; nsIURI *nsuri; - nsIURL *nsurl; NSContainer *container; windowref_t *window_ref; nsChannelBSC *channel_bsc; @@ -1792,8 +1791,6 @@ static nsrefcnt NSAPI nsURI_Release(nsIURL *iface) windowref_release(This->window_ref); if(This->container) nsIWebBrowserChrome_Release(&This->container->nsIWebBrowserChrome_iface); - if(This->nsurl) - nsIURL_Release(This->nsurl); if(This->nsuri) nsIURI_Release(This->nsuri); if(This->uri) @@ -2644,18 +2641,7 @@ static nsresult NSAPI nsURL_GetFileName(nsIURL *iface, nsACString *aFileName) static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileName) { nsWineURI *This = impl_from_nsIURL(iface); - - TRACE("(%p)->(%s)\n", This, debugstr_nsacstr(aFileName)); - - if(!This->is_mutable) - return NS_ERROR_UNEXPECTED; - - if(This->nsurl) { - invalidate_uri(This); - return nsIURL_SetFileName(This->nsurl, aFileName); - } - - FIXME("default action not implemented\n"); + FIXME("(%p)->(%s)\n", This, debugstr_nsacstr(aFileName)); return NS_ERROR_NOT_IMPLEMENTED; } @@ -2680,18 +2666,7 @@ static nsresult NSAPI nsURL_GetFileBaseName(nsIURL *iface, nsACString *aFileBase static nsresult NSAPI nsURL_SetFileBaseName(nsIURL *iface, const nsACString *aFileBaseName) { nsWineURI *This = impl_from_nsIURL(iface); - - TRACE("(%p)->(%s)\n", This, debugstr_nsacstr(aFileBaseName)); - - if(!This->is_mutable) - return NS_ERROR_UNEXPECTED; - - if(This->nsurl) { - invalidate_uri(This); - return nsIURL_SetFileBaseName(This->nsurl, aFileBaseName); - } - - FIXME("default action not implemented\n"); + FIXME("(%p)->(%s)\n", This, debugstr_nsacstr(aFileBaseName)); return NS_ERROR_NOT_IMPLEMENTED; } @@ -2707,44 +2682,21 @@ static nsresult NSAPI nsURL_GetFileExtension(nsIURL *iface, nsACString *aFileExt static nsresult NSAPI nsURL_SetFileExtension(nsIURL *iface, const nsACString *aFileExtension) { nsWineURI *This = impl_from_nsIURL(iface); - - TRACE("(%p)->(%s)\n", This, debugstr_nsacstr(aFileExtension)); - - if(!This->is_mutable) - return NS_ERROR_UNEXPECTED; - - if(This->nsurl) { - invalidate_uri(This); - return nsIURL_SetFileExtension(This->nsurl, aFileExtension); - } - - FIXME("default action not implemented\n"); + FIXME("(%p)->(%s)\n", This, debugstr_nsacstr(aFileExtension)); return NS_ERROR_NOT_IMPLEMENTED; } static nsresult NSAPI nsURL_GetCommonBaseSpec(nsIURL *iface, nsIURI *aURIToCompare, nsACString *_retval) { nsWineURI *This = impl_from_nsIURL(iface); - - TRACE("(%p)->(%p %p)\n", This, aURIToCompare, _retval); - - if(This->nsurl) - return nsIURL_GetCommonBaseSpec(This->nsurl, aURIToCompare, _retval); - - FIXME("default action not implemented\n"); + FIXME("(%p)->(%p %p)\n", This, aURIToCompare, _retval); return NS_ERROR_NOT_IMPLEMENTED; } static nsresult NSAPI nsURL_GetRelativeSpec(nsIURL *iface, nsIURI *aURIToCompare, nsACString *_retval) { nsWineURI *This = impl_from_nsIURL(iface); - - TRACE("(%p)->(%p %p)\n", This, aURIToCompare, _retval); - - if(This->nsurl) - return nsIURL_GetRelativeSpec(This->nsurl, aURIToCompare, _retval); - - FIXME("default action not implemented\n"); + FIXME("(%p)->(%p %p)\n", This, aURIToCompare, _retval); return NS_ERROR_NOT_IMPLEMENTED; } @@ -2879,9 +2831,6 @@ static nsresult create_nsuri(IUri *iuri, nsIURI *nsuri, HTMLWindow *window, NSCo IUri_AddRef(iuri); ret->uri = iuri; - if(nsuri) - nsIURI_QueryInterface(nsuri, &IID_nsIURL, (void**)&ret->nsurl); - TRACE("retval=%p\n", ret); *_retval = ret; return NS_OK;
1
0
0
0
Jacek Caban : mshtml: Reimplement nsIURL::GetFileBaseName on top of IUri.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: fc899dfa995bce1deb5de783d18c9d737572c546 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fc899dfa995bce1deb5de783d…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 11 19:41:28 2012 +0100 mshtml: Reimplement nsIURL::GetFileBaseName on top of IUri. --- dlls/mshtml/nsio.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 09ee17b..4ef2752 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -2662,14 +2662,19 @@ static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileNa static nsresult NSAPI nsURL_GetFileBaseName(nsIURL *iface, nsACString *aFileBaseName) { nsWineURI *This = impl_from_nsIURL(iface); + const WCHAR *file, *ext; + BSTR path; + nsresult nsres; TRACE("(%p)->(%p)\n", This, aFileBaseName); - if(This->nsurl) - return nsIURL_GetFileBaseName(This->nsurl, aFileBaseName); + nsres = get_uri_path(This, &path, &file, &ext); + if(NS_FAILED(nsres)) + return nsres; - FIXME("default action not implemented\n"); - return NS_ERROR_NOT_IMPLEMENTED; + nsres = return_wstr_nsacstr(aFileBaseName, file, ext-file); + SysFreeString(path); + return nsres; } static nsresult NSAPI nsURL_SetFileBaseName(nsIURL *iface, const nsACString *aFileBaseName)
1
0
0
0
Jacek Caban : mshtml: Reimplement nsIURL::GetFileName on top of IUri.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: b24b06a7cb1b89f82897a73f95105571b938342f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b24b06a7cb1b89f82897a73f9…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 11 19:41:18 2012 +0100 mshtml: Reimplement nsIURL::GetFileName on top of IUri. --- dlls/mshtml/nsio.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 1c69a64..09ee17b 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -2626,14 +2626,19 @@ static nsresult NSAPI nsURL_SetDirectory(nsIURL *iface, const nsACString *aDirec static nsresult NSAPI nsURL_GetFileName(nsIURL *iface, nsACString *aFileName) { nsWineURI *This = impl_from_nsIURL(iface); + const WCHAR *file; + BSTR path; + nsresult nsres; TRACE("(%p)->(%p)\n", This, aFileName); - if(This->nsurl) - return nsIURL_GetFileName(This->nsurl, aFileName); + nsres = get_uri_path(This, &path, &file, NULL); + if(NS_FAILED(nsres)) + return nsres; - FIXME("default action not implemented\n"); - return NS_ERROR_NOT_IMPLEMENTED; + nsres = return_wstr_nsacstr(aFileName, file, -1); + SysFreeString(path); + return nsres; } static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileName)
1
0
0
0
Jacek Caban : mshtml: Reimplement nsIURL:: GetDirectory using new helper functions.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: 5458e5f6def93ff302814458fb779f7c4fe35d28 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5458e5f6def93ff302814458f…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 11 19:41:02 2012 +0100 mshtml: Reimplement nsIURL::GetDirectory using new helper functions. --- dlls/mshtml/nsio.c | 77 +++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 56 insertions(+), 21 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 4e31534..1c69a64 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -151,6 +151,31 @@ static const char *debugstr_nsacstr(const nsACString *nsstr) return debugstr_a(data); } +static nsresult return_wstr_nsacstr(nsACString *ret_str, const WCHAR *str, int len) +{ + char *stra; + int lena; + + TRACE("returning %s\n", debugstr_wn(str, len)); + + if(!*str) { + nsACString_SetData(ret_str, ""); + return NS_OK; + } + + lena = WideCharToMultiByte(CP_ACP, 0, str, len, NULL, 0, NULL, NULL); + stra = heap_alloc(lena+1); + if(!stra) + return NS_ERROR_OUT_OF_MEMORY; + + WideCharToMultiByte(CP_ACP, 0, str, len, stra, lena, NULL, NULL); + stra[lena] = 0; + + nsACString_SetData(ret_str, stra); + heap_free(stra); + return NS_OK; +} + HRESULT nsuri_to_url(LPCWSTR nsuri, BOOL ret_empty, BSTR *ret) { const WCHAR *ptr = nsuri; @@ -2543,41 +2568,51 @@ static nsresult NSAPI nsURL_SetQuery(nsIURL *iface, const nsACString *aQuery) return NS_OK; } -static nsresult NSAPI nsURL_GetDirectory(nsIURL *iface, nsACString *aDirectory) +static nsresult get_uri_path(nsWineURI *This, BSTR *path, const WCHAR **file, const WCHAR **ext) { - nsWineURI *This = impl_from_nsIURL(iface); - char *dir = NULL; - WCHAR *ptr; - BSTR path; + const WCHAR *ptr; HRESULT hres; - TRACE("(%p)->(%p)\n", This, aDirectory); - if(!ensure_uri(This)) return NS_ERROR_UNEXPECTED; - hres = IUri_GetPath(This->uri, &path); + hres = IUri_GetPath(This->uri, path); if(FAILED(hres)) return NS_ERROR_FAILURE; - ptr = strrchrW(path, '/'); - if(ptr) { - if(ptr[1]) - *ptr = 0; - dir = heap_strdupWtoA(path); - if(!dir) { - SysFreeString(path); - return NS_ERROR_OUT_OF_MEMORY; - } + for(ptr = *path + SysStringLen(*path)-1; ptr > *path && *ptr != '/' && *ptr != '\\'; ptr--); + if(*ptr == '/' || *ptr == '\\') + ptr++; + *file = ptr; + + if(ext) { + ptr = strrchrW(ptr, '.'); + if(!ptr) + ptr = *path + SysStringLen(*path); + *ext = ptr; } - SysFreeString(path); - TRACE("ret %s\n", debugstr_a(dir)); - nsACString_SetData(aDirectory, dir ? dir : ""); - heap_free(dir); return NS_OK; } +static nsresult NSAPI nsURL_GetDirectory(nsIURL *iface, nsACString *aDirectory) +{ + nsWineURI *This = impl_from_nsIURL(iface); + const WCHAR *file; + BSTR path; + nsresult nsres; + + TRACE("(%p)->(%p)\n", This, aDirectory); + + nsres = get_uri_path(This, &path, &file, NULL); + if(NS_FAILED(nsres)) + return nsres; + + nsres = return_wstr_nsacstr(aDirectory, path, file-path); + SysFreeString(path); + return nsres; +} + static nsresult NSAPI nsURL_SetDirectory(nsIURL *iface, const nsACString *aDirectory) { nsWineURI *This = impl_from_nsIURL(iface);
1
0
0
0
Diego Nieto Cid : wined3d: Convert rtInternal and glGammaInternal.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: 759bad0202463f5588f6e534eca0c95a48d72b3a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=759bad0202463f5588f6e534e…
Author: Diego Nieto Cid <dnietoc(a)gmail.com> Date: Sat Jan 7 12:23:47 2012 -0300 wined3d: Convert rtInternal and glGammaInternal. --- dlls/wined3d/surface.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index f2a09dc..bf379f1 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -4531,6 +4531,12 @@ HRESULT d3dfmt_get_conv(const struct wined3d_surface *surface, BOOL need_alpha_c break; } + if (*convert != NO_CONVERSION) + { + format->rtInternal = format->glInternal; + format->glGammaInternal = format->glInternal; + } + return WINED3D_OK; }
1
0
0
0
Kusanagi Kouichi : winex11.drv: Fix IME status handling.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: dc02e4d1a7c35b4205f6109ad71deee5fdddd750 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dc02e4d1a7c35b4205f6109ad…
Author: Kusanagi Kouichi <slash(a)ac.auone-net.jp> Date: Mon Jan 9 16:36:10 2012 +0900 winex11.drv: Fix IME status handling. --- dlls/winex11.drv/ime.c | 60 ++++++++++++++++++-------------------------- dlls/winex11.drv/x11drv.h | 5 ++- dlls/winex11.drv/xim.c | 45 ++++++++++----------------------- 3 files changed, 42 insertions(+), 68 deletions(-) diff --git a/dlls/winex11.drv/ime.c b/dlls/winex11.drv/ime.c index a2b1121..b343a64 100644 --- a/dlls/winex11.drv/ime.c +++ b/dlls/winex11.drv/ime.c @@ -719,32 +719,21 @@ BOOL WINAPI NotifyIME(HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue) case IMC_SETOPENSTATUS: TRACE("IMC_SETOPENSTATUS\n"); - /* Indirectly called from XIM callbacks */ - if (ImmGetIMCCLockCount(lpIMC->hPrivate) > 0) + bRet = TRUE; + X11DRV_SetPreeditState(lpIMC->hWnd, lpIMC->fOpen); + if (!lpIMC->fOpen) { - bRet = TRUE; - break; - } + LPIMEPRIVATE myPrivate; - bRet = X11DRV_SetPreeditState(lpIMC->hWnd, lpIMC->fOpen); - if (bRet) - { - if (!lpIMC->fOpen) + myPrivate = ImmLockIMCC(lpIMC->hPrivate); + if (myPrivate->bInComposition) { - LPIMEPRIVATE myPrivate; - - myPrivate = ImmLockIMCC(lpIMC->hPrivate); - if (myPrivate->bInComposition) - { - X11DRV_ForceXIMReset(lpIMC->hWnd); - GenerateIMEMessage(hIMC, WM_IME_ENDCOMPOSITION, 0, 0); - myPrivate->bInComposition = FALSE; - } - ImmUnlockIMCC(lpIMC->hPrivate); + X11DRV_ForceXIMReset(lpIMC->hWnd); + GenerateIMEMessage(hIMC, WM_IME_ENDCOMPOSITION, 0, 0); + myPrivate->bInComposition = FALSE; } + ImmUnlockIMCC(lpIMC->hPrivate); } - else - lpIMC->fOpen = !lpIMC->fOpen; break; default: FIXME("Unknown\n"); break; @@ -957,7 +946,15 @@ DWORD WINAPI ImeGetImeMenuItems(HIMC hIMC, DWORD dwFlags, DWORD dwType, /* Interfaces to XIM and other parts of winex11drv */ -void IME_SetOpenStatus(BOOL fOpen, BOOL force) +void IME_SetOpenStatus(BOOL fOpen) +{ + HIMC imc; + + imc = RealIMC(FROM_X11); + ImmSetOpenStatus(imc, fOpen); +} + +void IME_SetCompositionStatus(BOOL fOpen) { HIMC imc; LPINPUTCONTEXT lpIMC; @@ -970,20 +967,18 @@ void IME_SetOpenStatus(BOOL fOpen, BOOL force) myPrivate = ImmLockIMCC(lpIMC->hPrivate); - if (!fOpen && myPrivate->bInComposition) + if (fOpen && !myPrivate->bInComposition) + { + GenerateIMEMessage(imc, WM_IME_STARTCOMPOSITION, 0, 0); + } + else if (!fOpen && myPrivate->bInComposition) { ShowWindow(myPrivate->hwndDefault, SW_HIDE); ImmDestroyIMCC(lpIMC->hCompStr); lpIMC->hCompStr = ImeCreateBlankCompStr(); - myPrivate->bInComposition = FALSE; GenerateIMEMessage(imc, WM_IME_ENDCOMPOSITION, 0, 0); } - - if (lpIMC->fOpen && fOpen) - ImmSetOpenStatus(imc, FALSE); - - if (fOpen || force) - ImmSetOpenStatus(imc, fOpen); + myPrivate->bInComposition = fOpen; ImmUnlockIMCC(lpIMC->hPrivate); ImmUnlockIMC(imc); @@ -1059,7 +1054,6 @@ void IME_SetResultString(LPWSTR lpResult, DWORD dwResultLen) LPINPUTCONTEXT lpIMC; HIMCC newCompStr; LPIMEPRIVATE myPrivate; - BOOL fOpen; imc = RealIMC(FROM_X11); lpIMC = ImmLockIMC(imc); @@ -1071,15 +1065,11 @@ void IME_SetResultString(LPWSTR lpResult, DWORD dwResultLen) lpIMC->hCompStr = newCompStr; myPrivate = ImmLockIMCC(lpIMC->hPrivate); - fOpen = lpIMC->fOpen; - ImmSetOpenStatus(imc, TRUE); if (!myPrivate->bInComposition) GenerateIMEMessage(imc, WM_IME_STARTCOMPOSITION, 0, 0); GenerateIMEMessage(imc, WM_IME_COMPOSITION, 0, GCS_RESULTSTR); if (!myPrivate->bInComposition) GenerateIMEMessage(imc, WM_IME_ENDCOMPOSITION, 0, 0); - if (!fOpen) - ImmSetOpenStatus(imc, FALSE); ImmUnlockIMCC(lpIMC->hPrivate); ImmUnlockIMC(imc); diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index f3ffe6b..0f155ee 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -289,7 +289,8 @@ extern BOOL destroy_glxpixmap(Display *display, XID glxpixmap) DECLSPEC_HIDDEN; /* IME support */ extern void IME_UnregisterClasses(void) DECLSPEC_HIDDEN; -extern void IME_SetOpenStatus(BOOL fOpen, BOOL force) DECLSPEC_HIDDEN; +extern void IME_SetOpenStatus(BOOL fOpen) DECLSPEC_HIDDEN; +extern void IME_SetCompositionStatus(BOOL fOpen) DECLSPEC_HIDDEN; extern INT IME_GetCursorPos(void) DECLSPEC_HIDDEN; extern void IME_SetCursorPos(DWORD pos) DECLSPEC_HIDDEN; extern void IME_UpdateAssociation(HWND focus) DECLSPEC_HIDDEN; @@ -716,7 +717,7 @@ extern XIC X11DRV_CreateIC(XIM xim, struct x11drv_win_data *data) DECLSPEC_HIDDE extern void X11DRV_SetupXIM(void) DECLSPEC_HIDDEN; extern void X11DRV_XIMLookupChars( const char *str, DWORD count ) DECLSPEC_HIDDEN; extern void X11DRV_ForceXIMReset(HWND hwnd) DECLSPEC_HIDDEN; -extern BOOL X11DRV_SetPreeditState(HWND hwnd, BOOL fOpen) DECLSPEC_HIDDEN; +extern void X11DRV_SetPreeditState(HWND hwnd, BOOL fOpen) DECLSPEC_HIDDEN; #define XEMBED_MAPPED (1 << 0) diff --git a/dlls/winex11.drv/xim.c b/dlls/winex11.drv/xim.c index 95032d4..786578e 100644 --- a/dlls/winex11.drv/xim.c +++ b/dlls/winex11.drv/xim.c @@ -129,10 +129,10 @@ static BOOL XIMPreEditStateNotifyCallback(XIC xic, XPointer p, XPointer data) switch (state) { case XIMPreeditEnable: - IME_SetOpenStatus(TRUE, TRUE); + IME_SetOpenStatus(TRUE); break; case XIMPreeditDisable: - IME_SetOpenStatus(FALSE, TRUE); + IME_SetOpenStatus(FALSE); break; default: break; @@ -143,7 +143,7 @@ static BOOL XIMPreEditStateNotifyCallback(XIC xic, XPointer p, XPointer data) static int XIMPreEditStartCallback(XIC ic, XPointer client_data, XPointer call_data) { TRACE("PreEditStartCallback %p\n",ic); - IME_SetOpenStatus(TRUE, FALSE); + IME_SetCompositionStatus(TRUE); ximInComposeMode = TRUE; return -1; } @@ -157,7 +157,7 @@ static void XIMPreEditDoneCallback(XIC ic, XPointer client_data, XPointer call_d dwCompStringSize = 0; dwCompStringLength = 0; CompositionString = NULL; - IME_SetOpenStatus(FALSE, FALSE); + IME_SetCompositionStatus(FALSE); } static void XIMPreEditDrawCallback(XIM ic, XPointer client_data, @@ -264,48 +264,31 @@ void X11DRV_ForceXIMReset(HWND hwnd) } } -BOOL X11DRV_SetPreeditState(HWND hwnd, BOOL fOpen) +void X11DRV_SetPreeditState(HWND hwnd, BOOL fOpen) { XIC ic; XIMPreeditState state; - XVaNestedList attr_set, attr_get; - BOOL ret; + XVaNestedList attr; ic = X11DRV_get_ic(hwnd); if (!ic) - return FALSE; + return; if (fOpen) state = XIMPreeditEnable; else state = XIMPreeditDisable; - ret = FALSE; wine_tsx11_lock(); - attr_set = XVaCreateNestedList(0, XNPreeditState, state, NULL); - if (attr_set == NULL) - goto error1; - - attr_get = XVaCreateNestedList(0, XNPreeditState, &state, NULL); - if (attr_get == NULL) - goto error2; - - if (XSetICValues(ic, XNPreeditAttributes, attr_set, NULL) != NULL) - goto error3; - - /* SCIM claims it supports XNPreeditState, but seems to ignore */ - state = XIMPreeditUnKnown; - ret = XGetICValues(ic, XNPreeditAttributes, attr_get, NULL) == NULL && - ((fOpen && state == XIMPreeditEnable) || - (!fOpen && state == XIMPreeditDisable)); -error3: - XFree(attr_get); -error2: - XFree(attr_set); -error1: + attr = XVaCreateNestedList(0, XNPreeditState, state, NULL); + if (attr != NULL) + { + XSetICValues(ic, XNPreeditAttributes, attr, NULL); + XFree(attr); + } + wine_tsx11_unlock(); - return ret; }
1
0
0
0
Kusanagi Kouichi : winex11.drv: Assign struct.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: f56e1fcf7c87ef05daf741259eaf35d49171cb0b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f56e1fcf7c87ef05daf741259…
Author: Kusanagi Kouichi <slash(a)ac.auone-net.jp> Date: Wed Jan 11 21:58:11 2012 +0900 winex11.drv: Assign struct. --- dlls/winex11.drv/window.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 0411ddf..e6affcb 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -2272,10 +2272,7 @@ void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect, escape.dc_rect.top = win_rect->top - top_rect->top; escape.dc_rect.right = win_rect->right - top_rect->left; escape.dc_rect.bottom = win_rect->bottom - top_rect->top; - escape.drawable_rect.left = top_rect->left; - escape.drawable_rect.top = top_rect->top; - escape.drawable_rect.right = top_rect->right; - escape.drawable_rect.bottom = top_rect->bottom; + escape.drawable_rect = *top_rect; if (top == hwnd) {
1
0
0
0
Daniel Lehman : msvcp90: Add num_get<char> stubs.
by Alexandre Julliard
11 Jan '12
11 Jan '12
Module: wine Branch: master Commit: 4f9bc837d8d5b78fbdb6af73680d6c0588713b1a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4f9bc837d8d5b78fbdb6af736…
Author: Daniel Lehman <dlehman(a)esri.com> Date: Wed Jan 4 11:21:46 2012 -0800 msvcp90: Add num_get<char> stubs. --- dlls/msvcp90/locale.c | 343 +++++++++++++++++++++++++++++++++++++++++++++ dlls/msvcp90/msvcp90.spec | 132 +++++++++--------- 2 files changed, 409 insertions(+), 66 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=4f9bc837d8d5b78fbdb6a…
1
0
0
0
← Newer
1
...
64
65
66
67
68
69
70
...
98
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
Results per page:
10
25
50
100
200