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
February 2006
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
696 discussions
Start a n
N
ew thread
H. Verbeet : wined3d: Don't keep a reference to the container, as it creates a
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: 7a4b59b0c20d643dcd57d8b5f0d5d6d5fa07ee84 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7a4b59b0c20d643dcd57d8b…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Mon Feb 13 13:23:58 2006 +0100 wined3d: Don't keep a reference to the container, as it creates a circular reference. --- dlls/wined3d/surface.c | 10 +--------- dlls/wined3d/volume.c | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index ab25c96..4cb1b3e 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -69,9 +69,6 @@ ULONG WINAPI IWineD3DSurfaceImpl_Release glDeleteTextures(1, &This->glDescription.textureName); LEAVE_GL(); } - if (This->container) { - IWineD3DBase_Release(This->container); - } IWineD3DResourceImpl_CleanUp((IWineD3DResource *)iface); TRACE("(%p) Released\n", This); @@ -1357,12 +1354,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SetCo TRACE("This %p, container %p\n", This, container); - if (container) { - IWineD3DBase_AddRef(container); - } - if (This->container) { - IWineD3DBase_Release(This->container); - } + /* We can't keep a reference to the container, since the container already keeps a reference to us. */ TRACE("Setting container to %p from %p\n", container, This->container); This->container = container; diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c index 0c367bc..3fa1717 100644 --- a/dlls/wined3d/volume.c +++ b/dlls/wined3d/volume.c @@ -55,9 +55,6 @@ ULONG WINAPI IWineD3DVolumeImpl_Release( TRACE("(%p) : Releasing from %ld\n", This, This->resource.ref); ref = InterlockedDecrement(&This->resource.ref); if (ref == 0) { - if (This->container) { - IWineD3DBase_Release(This->container); - } IWineD3DResourceImpl_CleanUp((IWineD3DResource *)iface); HeapFree(GetProcessHeap(), 0, This); } @@ -252,12 +249,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_SetCon TRACE("This %p, container %p\n", This, container); - if (container) { - IWineD3DBase_AddRef(container); - } - if (This->container) { - IWineD3DBase_Release(This->container); - } + /* We can't keep a reference to the container, since the container already keeps a reference to us. */ TRACE("Setting container to %p from %p\n", container, This->container); This->container = container;
1
0
0
0
Francois Gouget : wined3d: Protect float.h inclusion.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: 0ff18f58fa9fb64697c9bcabed6274c0dcef5deb URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=0ff18f58fa9fb64697c9bca…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Feb 13 13:23:42 2006 +0100 wined3d: Protect float.h inclusion. --- dlls/wined3d/device.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 4b10c6d..2f6910b 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -22,7 +22,9 @@ */ #include "config.h" -#include <float.h> +#ifdef HAVE_FLOAT_H +# include <float.h> +#endif #include "wined3d_private.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d);
1
0
0
0
Francois Gouget : mshtml: Add trailing '\n's to ok() calls.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: deaaa681aa7c978e14acf2fe3e497b56a7eb77dc URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=deaaa681aa7c978e14acf2f…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Feb 13 13:23:13 2006 +0100 mshtml: Add trailing '\n's to ok() calls. --- dlls/mshtml/tests/htmldoc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index fee6565..9b99c62 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -176,7 +176,7 @@ static HRESULT WINAPI HlinkFrame_Navigat hres = IHlink_GetHlinkSite(pihlNavigate, &site, &site_data); ok(hres == S_OK, "GetHlinkSite failed: %08lx\n", hres); - ok(site == NULL, "site = %p\n, expected NULL", site); + ok(site == NULL, "site = %p\n, expected NULL\n", site); ok(site_data == 0xdeadbeef, "site_data = %lx\n", site_data); }
1
0
0
0
Francois Gouget : d3dtypes: Fix windows.h inclusion.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: c2f99c51986f81078b1e56c3d75e9a0a9ada124d URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c2f99c51986f81078b1e56c…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Feb 13 13:22:59 2006 +0100 d3dtypes: Fix windows.h inclusion. --- include/d3dtypes.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/include/d3dtypes.h b/include/d3dtypes.h index 6670e71..36efec0 100644 --- a/include/d3dtypes.h +++ b/include/d3dtypes.h @@ -25,7 +25,9 @@ #ifndef __WINE_D3DTYPES_H #define __WINE_D3DTYPES_H -/* #include <windows.h> FIXME: Need to include for compatibility. Inclusion caused compile fail */ +#ifndef __WINESRC__ +# include <windows.h> +#endif #include <float.h> #include <ddraw.h>
1
0
0
0
Hans Leidekker : kernel: Report a tape device as FILE_TYPE_CHAR.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: e0de496f6119a42b64b2978aae9352e717d821f5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=e0de496f6119a42b64b2978…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Mon Feb 13 13:22:34 2006 +0100 kernel: Report a tape device as FILE_TYPE_CHAR. --- dlls/kernel/file.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/kernel/file.c b/dlls/kernel/file.c index 9c5973a..7f0edf3 100644 --- a/dlls/kernel/file.c +++ b/dlls/kernel/file.c @@ -775,6 +775,7 @@ DWORD WINAPI GetFileType( HANDLE hFile ) case FILE_DEVICE_NULL: case FILE_DEVICE_SERIAL_PORT: case FILE_DEVICE_PARALLEL_PORT: + case FILE_DEVICE_TAPE: case FILE_DEVICE_UNKNOWN: return FILE_TYPE_CHAR; case FILE_DEVICE_NAMED_PIPE:
1
0
0
0
Hans Leidekker : crypt32: Add a stub for CryptQueryObject.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: c27526743bcdffd9449d68f3ccb735037b0029f4 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c27526743bcdffd9449d68f…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Mon Feb 13 13:22:25 2006 +0100 crypt32: Add a stub for CryptQueryObject. --- dlls/crypt32/crypt32.spec | 1 + dlls/crypt32/main.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec index 34973e5..6a0b2d6 100644 --- a/dlls/crypt32/crypt32.spec +++ b/dlls/crypt32/crypt32.spec @@ -137,6 +137,7 @@ @ stub CryptMsgUpdate @ stub CryptMsgVerifyCountersignatureEncoded @ stdcall CryptProtectData(ptr wstr ptr ptr ptr long ptr) +@ stdcall CryptQueryObject(long ptr long long long ptr ptr ptr ptr ptr ptr) @ stdcall CryptRegisterDefaultOIDFunction(long str long wstr) @ stdcall CryptRegisterOIDFunction(long str str wstr str) @ stub CryptRegisterOIDInfo diff --git a/dlls/crypt32/main.c b/dlls/crypt32/main.c index 7a9c6f1..4a7de5f 100644 --- a/dlls/crypt32/main.c +++ b/dlls/crypt32/main.c @@ -364,3 +364,16 @@ BOOL WINAPI I_CryptInstallOssGlobal(DWOR FIXME("%08lx %08lx %08lx\n", x, y, z); return FALSE; } + +BOOL WINAPI CryptQueryObject(DWORD dwObjectType, const void* pvObject, + DWORD dwExpectedContentTypeFlags, DWORD dwExpectedFormatTypeFlags, + DWORD dwFlags, DWORD* pdwMsgAndCertEncodingType, DWORD* pdwContentType, + DWORD* pdwFormatType, HCERTSTORE* phCertStore, HCRYPTMSG* phMsg, + const void** ppvContext) +{ + FIXME( "%08lx %p %08lx %08lx %08lx %p %p %p %p %p %p", dwObjectType, + pvObject, dwExpectedContentTypeFlags, dwExpectedFormatTypeFlags, + dwFlags, pdwMsgAndCertEncodingType, pdwContentType, pdwFormatType, + phCertStore, phMsg, ppvContext); + return FALSE; +}
1
0
0
0
Hans Leidekker : netapi32: Improve stub for NetUserModalsGet.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: b9709d805cc3d18987a785da830074a7e3c52c1d URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b9709d805cc3d18987a785d…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Mon Feb 13 13:22:11 2006 +0100 netapi32: Improve stub for NetUserModalsGet. Tell the caller this host is not part of a domain. --- dlls/netapi32/access.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c index e3e0a36..614e2a4 100644 --- a/dlls/netapi32/access.c +++ b/dlls/netapi32/access.c @@ -554,6 +554,12 @@ NetGetDCName(LPCWSTR servername, LPCWSTR NET_API_STATUS WINAPI NetUserModalsGet(LPCWSTR szServer, DWORD level, LPBYTE *pbuffer) { FIXME("(%s %ld %p) stub!\n", debugstr_w(szServer), level, pbuffer); + + if (level == 2) + { + *pbuffer = NULL; + return NERR_Success; + } return NERR_InternalError; }
1
0
0
0
Dmitry Timoshkov : msvfw32: Fix typos in the control state handling.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: d4774ba1c66e9f4acabf977ecfb1d763e30eaa1f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=d4774ba1c66e9f4acabf977…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Mon Feb 13 12:48:11 2006 +0100 msvfw32: Fix typos in the control state handling. Fix typos in the control state handling, add state checks for IDOK and IDCANCEL control notification handlers. --- dlls/msvideo/msvideo_main.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/msvideo/msvideo_main.c b/dlls/msvideo/msvideo_main.c index 2ac5ff3..ce9a25e 100644 --- a/dlls/msvideo/msvideo_main.c +++ b/dlls/msvideo/msvideo_main.c @@ -811,7 +811,7 @@ static INT_PTR CALLBACK icm_choose_compr struct codec_info *ic; BOOL enable = FALSE; - if (HIWORD(wparam != CBN_SELCHANGE)) + if (HIWORD(wparam) != CBN_SELCHANGE) break; cur_sel = SendMessageW((HWND)lparam, CB_GETCURSEL, 0, 0); @@ -832,7 +832,7 @@ static INT_PTR CALLBACK icm_choose_compr INT cur_sel; struct codec_info *ic; - if (HIWORD(wparam != BN_CLICKED)) + if (HIWORD(wparam) != BN_CLICKED) break; cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0); @@ -850,6 +850,9 @@ static INT_PTR CALLBACK icm_choose_compr INT cur_sel; struct codec_info *ic; + if (HIWORD(wparam) != BN_CLICKED) + break; + cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0); ic = (struct codec_info *)SendMessageW(list, CB_GETITEMDATA, cur_sel, 0); if (ic) @@ -871,6 +874,9 @@ static INT_PTR CALLBACK icm_choose_compr HWND list = GetDlgItem(hdlg, IDC_COMP_LIST); INT idx = 0; + if (HIWORD(wparam) != BN_CLICKED) + break; + while (1) { struct codec_info *ic;
1
0
0
0
Alexandre Julliard : libwine: Use dladdr if supported to get the run-time path of libwine.so
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: 0b34fb365657b9983a591610b2d80e298623d6f0 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=0b34fb365657b9983a59161…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Feb 11 22:38:44 2006 +0100 libwine: Use dladdr if supported to get the run-time path of libwine.so and define the default dll and bin directories relative to it. --- libs/wine/Makefile.in | 2 - libs/wine/config.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++++- libs/wine/loader.c | 6 ++- 3 files changed, 112 insertions(+), 6 deletions(-) diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index b9ddf42..34b6400 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -5,7 +5,7 @@ VPATH = @srcdir@ LIBRARY = wine SOVERSION = 1 VERSCRIPT = $(SRCDIR)/wine.map -EXTRADEFS = -D__WINESRC__ -DBINDIR="\"$(bindir)\"" -DDLLDIR="\"$(dlldir)\"" +EXTRADEFS = -D__WINESRC__ -DBINDIR="\"$(bindir)\"" -DLIBDIR="\"$(libdir)\"" -DDLLDIR="\"$(dlldir)\"" EXTRALIBS = $(LIBPORT) @DLLIBS@ @CRTLIBS@ @LDLIBWINEFLAGS@ C_SRCS = \ diff --git a/libs/wine/config.c b/libs/wine/config.c index b2b039c..33aa87a 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -101,6 +101,103 @@ inline static void remove_trailing_slash while (len > 1 && path[len-1] == '/') path[--len] = 0; } +/* determine where the destination path is located relative to the 'from' path */ +inline static const char *get_relative_path( const char *from, const char *dest, unsigned int *dotdots ) +{ +#define DIR_END(p) (*(p) == 0 || *(p) == '/') + const char *start; + + *dotdots = 0; + for (;;) + { + while (*from == '/') from++; + while (*dest == '/') dest++; + start = dest; /* save start of next path element */ + if (!*from) break; + + while (!DIR_END(from) && *from == *dest) { from++; dest++; } + if (DIR_END(from) && DIR_END(dest)) continue; + + /* count remaining elements in 'from' */ + do + { + (*dotdots)++; + while (!DIR_END(from)) from++; + while (*from == '/') from++; + } + while (*from); + break; + } + return start; +#undef DIR_END +} + +/* return the directory that contains the library at run-time */ +static const char *get_runtime_libdir(void) +{ + static char *libdir; + +#ifdef HAVE_DLADDR + Dl_info info; + char *p; + + if (!libdir && dladdr( get_runtime_libdir, &info ) && (p = strrchr( info.dli_fname, '/' ))) + { + unsigned int len = p - info.dli_fname; + if (!len) len++; /* include initial slash */ + libdir = xmalloc( len + 1 ); + memcpy( libdir, info.dli_fname, len ); + libdir[len] = 0; + } +#endif /* HAVE_DLADDR */ + return libdir; +} + +/* determine the proper location of the given path based on the current libdir */ +static char *get_path_from_libdir( const char *path, const char *filename ) +{ + char *p, *ret; + const char *libdir = get_runtime_libdir(); + + /* retrieve the library load path */ + + if (libdir) + { + unsigned int dotdots = 0; + const char *start = get_relative_path( LIBDIR, path, &dotdots ); + + ret = xmalloc( strlen(libdir) + 3 * dotdots + strlen(start) + strlen(filename) + 3 ); + strcpy( ret, libdir ); + p = ret + strlen(libdir); + if (p[-1] != '/') *p++ = '/'; + + while (dotdots--) + { + p[0] = '.'; + p[1] = '.'; + p[2] = '/'; + p += 3; + } + + strcpy( p, start ); + p += strlen(p); + } + else + { + ret = xmalloc( strlen(path) + strlen(filename) + 2 ); + strcpy( ret, path ); + p = ret + strlen(ret); + } + + if (*filename) + { + if (p[-1] != '/') *p++ = '/'; + strcpy( p, filename ); + } + else if (p[-1] == '/') p[-1] = 0; + return ret; +} + /* initialize the server directory value */ static void init_server_dir( dev_t dev, ino_t ino ) { @@ -127,6 +224,15 @@ static void init_server_dir( dev_t dev, sprintf( p, "%lx", (unsigned long)ino ); } +/* retrieve the default dll dir */ +const char *get_default_dlldir(void) +{ + static const char *dlldir; + + if (!dlldir) dlldir = get_path_from_libdir( DLLDIR, "" ); + return dlldir; +} + /* initialize all the paths values */ static void init_paths(void) { @@ -314,9 +420,7 @@ void wine_exec_wine_binary( const char * else if (!name) name = argv0_name; /* first, try bin directory */ - argv[0] = xmalloc( sizeof(BINDIR "/") + strlen(name) ); - strcpy( argv[0], BINDIR "/" ); - strcat( argv[0], name ); + argv[0] = get_path_from_libdir( BINDIR, name ); preloader_exec( argv, envp, use_preloader ); free( argv[0] ); diff --git a/libs/wine/loader.c b/libs/wine/loader.c index 50ab544..e58ab7c 100644 --- a/libs/wine/loader.c +++ b/libs/wine/loader.c @@ -74,13 +74,14 @@ static const IMAGE_NT_HEADERS *main_exe; static load_dll_callback_t load_dll_callback; -static const char default_dlldir[] = DLLDIR; +static const char *default_dlldir; static const char **dll_paths; static int nb_dll_paths; static int dll_path_maxlen; extern void mmap_init(void); extern void debug_init(void); +extern const char *get_default_dlldir(void); /* build the dll load path from the WINEDLLPATH variable */ static void build_dll_path(void) @@ -121,7 +122,8 @@ static void build_dll_path(void) } /* append default dll dir (if not empty) to path */ - if ((len = sizeof(default_dlldir)-1)) + default_dlldir = get_default_dlldir(); + if ((len = strlen(default_dlldir)) > 0) { if (len > dll_path_maxlen) dll_path_maxlen = len; dll_paths[nb_dll_paths++] = default_dlldir;
1
0
0
0
Alexandre Julliard : configure: Added check for dladdr in libdl.
by Alexandre Julliard
13 Feb '06
13 Feb '06
Module: wine Branch: refs/heads/master Commit: 266c609dd1dab8caab71ea1cc3949dacfcde8c40 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=266c609dd1dab8caab71ea1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Feb 11 20:55:50 2006 +0100 configure: Added check for dladdr in libdl. --- configure | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 1 include/config.h.in | 3 + 3 files changed, 108 insertions(+), 0 deletions(-) diff --git a/configure b/configure index daee535..80e58c5 100755 --- a/configure +++ b/configure @@ -12305,6 +12305,110 @@ fi fi done + ac_wine_check_funcs_save_LIBS="$LIBS" +LIBS="$LIBS $DLLIBS" + +for ac_func in dladdr +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +LIBS="$ac_wine_check_funcs_save_LIBS" else LIBEXT="a" fi diff --git a/configure.ac b/configure.ac index 6532db1..7784f8a 100644 --- a/configure.ac +++ b/configure.ac @@ -937,6 +937,7 @@ case $host_os in [AC_DEFINE(HAVE_DLOPEN,1,[Define if you have dlopen]) DLLIBS="-ldl"], [LIBEXT="a"])]) + WINE_CHECK_LIB_FUNCS(dladdr,[$DLLIBS]) else LIBEXT="a" fi diff --git a/include/config.h.in b/include/config.h.in index c937226..ed6fc4c 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -59,6 +59,9 @@ /* Define to 1 if you have the <direct.h> header file. */ #undef HAVE_DIRECT_H +/* Define to 1 if you have the `dladdr' function. */ +#undef HAVE_DLADDR + /* Define to 1 if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H
1
0
0
0
← Newer
1
...
35
36
37
38
39
40
41
...
70
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
Results per page:
10
25
50
100
200