winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
December 2007
----- 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
824 discussions
Start a n
N
ew thread
Francois Gouget : ddraw: Rename DDRAW_dump_flags_() to DDRAW_dump_flags_nolf() to clarify its difference from DDRAW_dump_flags ().
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: 6a8f961e08839f41f8905724c4e8356fd3302126 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6a8f961e08839f41f8905724c…
Author: Francois Gouget <fgouget(a)free.fr> Date: Fri Dec 7 01:03:03 2007 +0100 ddraw: Rename DDRAW_dump_flags_() to DDRAW_dump_flags_nolf() to clarify its difference from DDRAW_dump_flags(). --- dlls/ddraw/utils.c | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c index b857d96..80397ec 100644 --- a/dlls/ddraw/utils.c +++ b/dlls/ddraw/utils.c @@ -629,12 +629,8 @@ DDRAW_dump_DDCOLORKEY(const DDCOLORKEY *ddck) TRACE(" Low : %d - High : %d", ddck->dwColorSpaceLowValue, ddck->dwColorSpaceHighValue); } -#define DDRAW_dump_flags(flags,names,num_names) DDRAW_dump_flags_(flags, names, num_names, 1) -static void -DDRAW_dump_flags_(DWORD flags, - const flag_info* names, - size_t num_names, - int newline) +static void DDRAW_dump_flags_nolf(DWORD flags, const flag_info* names, + size_t num_names) { unsigned int i; @@ -642,9 +638,13 @@ DDRAW_dump_flags_(DWORD flags, if ((flags & names[i].val) || /* standard flag value */ ((!flags) && (!names[i].val))) /* zero value only */ TRACE("%s ", names[i].name); +} - if (newline) - TRACE("\n"); +static void DDRAW_dump_flags(DWORD flags, const flag_info* names, + size_t num_names) +{ + DDRAW_dump_flags_nolf(flags, names, num_names); + TRACE("\n"); } void DDRAW_dump_DDSCAPS2(const DDSCAPS2 *in) @@ -703,8 +703,8 @@ void DDRAW_dump_DDSCAPS2(const DDSCAPS2 *in) FE(DDSCAPS2_STEREOSURFACELEFT) }; - DDRAW_dump_flags_(in->dwCaps, flags, sizeof(flags)/sizeof(flags[0]), 0); - DDRAW_dump_flags_(in->dwCaps2, flags2, sizeof(flags2)/sizeof(flags2[0]), 0); + DDRAW_dump_flags_nolf(in->dwCaps, flags, sizeof(flags)/sizeof(flags[0])); + DDRAW_dump_flags_nolf(in->dwCaps2, flags2, sizeof(flags2)/sizeof(flags2[0])); } void @@ -741,7 +741,7 @@ DDRAW_dump_pixelformat_flag(DWORD flagmask) FE(DDPF_ZPIXELS) }; - DDRAW_dump_flags_(flagmask, flags, sizeof(flags)/sizeof(flags[0]), 0); + DDRAW_dump_flags_nolf(flagmask, flags, sizeof(flags)/sizeof(flags[0])); } static void
1
0
0
0
Michael Stefaniuc : user32/tests: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call.
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: 64b7359265ba2a386d2864504fd2b61bcdcc6249 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=64b7359265ba2a386d2864504…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 7 01:14:24 2007 +0100 user32/tests: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call. --- dlls/user32/tests/listbox.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 529e2c0..9829bd5 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -168,13 +168,11 @@ check (const struct listbox_test test) WCHAR *txtw; int resA, resW; - txt = HeapAlloc (GetProcessHeap(), 0, size+1); - memset(txt, 0, size+1); + txt = HeapAlloc (GetProcessHeap(), HEAP_ZERO_MEMORY, size+1); resA=SendMessageA(hLB, LB_GETTEXT, i, (LPARAM)txt); ok(!strcmp (txt, strings[i]), "returned string for item %d does not match %s vs %s\n", i, txt, strings[i]); - txtw = HeapAlloc (GetProcessHeap(), 0, 2*size+2); - memset(txtw, 0, 2*size+2); + txtw = HeapAlloc (GetProcessHeap(), HEAP_ZERO_MEMORY, 2*size+2); resW=SendMessageW(hLB, LB_GETTEXT, i, (LPARAM)txtw); if (resA != resW) { trace("SendMessageW(LB_GETTEXT) not supported on this platform (resA=%d resW=%d), skipping...\n",
1
0
0
0
Michael Stefaniuc : winecfg: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call.
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: d35e57732e3b18fe74b7b340f52f3e1002efef59 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d35e57732e3b18fe74b7b340f…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 7 01:14:13 2007 +0100 winecfg: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call. --- programs/winecfg/audio.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c index 39b3b07..32d8754 100644 --- a/programs/winecfg/audio.c +++ b/programs/winecfg/audio.c @@ -541,10 +541,8 @@ static void findAudioDrivers(void) if (numFound) { loadedAudioDrv = HeapReAlloc(GetProcessHeap(), 0, loadedAudioDrv, (numFound + 1) * sizeof(AUDIO_DRIVER)); CopyMemory(&loadedAudioDrv[numFound], pAudioDrv, sizeof(AUDIO_DRIVER)); - } else { - loadedAudioDrv = HeapAlloc(GetProcessHeap(), 0, sizeof(AUDIO_DRIVER)); - ZeroMemory(&loadedAudioDrv[0], sizeof(AUDIO_DRIVER)); - } + } else + loadedAudioDrv = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(AUDIO_DRIVER)); } /* check local copy of registry string for unloadable drivers */
1
0
0
0
Alexandre Julliard : winebuild: Also optimize out imports that are only used for forwards.
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: 195356c0981709e090201944f35298f48b7a7346 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=195356c0981709e090201944f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 6 21:44:45 2007 +0100 winebuild: Also optimize out imports that are only used for forwards. --- tools/winebuild/import.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index a1fdbd0..5b62512 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -617,10 +617,11 @@ int resolve_imports( DLLSPEC *spec ) } } } - if (!removed && check_unused( imp, spec )) + if (!removed) { /* the dll is not used, get rid of it */ - warning( "winebuild: %s imported but no symbols used\n", imp->spec->file_name ); + if (check_unused( imp, spec )) + warning( "winebuild: %s imported but no symbols used\n", imp->spec->file_name ); remove_import_dll( i ); i--; }
1
0
0
0
Alexandre Julliard : ntdll: Support delayed loading of modules referenced by forwarded entry points.
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: 0861141725827ddc378665d7cc570362ddc172be URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0861141725827ddc378665d7c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 6 21:40:37 2007 +0100 ntdll: Support delayed loading of modules referenced by forwarded entry points. --- dlls/ntdll/loader.c | 48 +++++++++++++++++++++++++++++++++--------------- 1 files changed, 33 insertions(+), 15 deletions(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index ca1ebdd..05538a0 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -115,8 +115,9 @@ static WINE_MODREF *current_modref; static WINE_MODREF *last_failed_modref; static NTSTATUS load_dll( LPCWSTR load_path, LPCWSTR libname, DWORD flags, WINE_MODREF** pwm ); +static NTSTATUS process_attach( WINE_MODREF *wm, LPVOID lpReserved ); static FARPROC find_named_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY *exports, - DWORD exp_size, const char *name, int hint ); + DWORD exp_size, const char *name, int hint, LPCWSTR load_path ); /* convert PE image VirtualAddress to Real Address */ static inline void *get_rva( HMODULE module, DWORD va ) @@ -330,7 +331,7 @@ static WINE_MODREF *find_fullname_module( LPCWSTR name ) * Find the final function pointer for a forwarded function. * The loader_section must be locked while calling this function. */ -static FARPROC find_forwarded_export( HMODULE module, const char *forward ) +static FARPROC find_forwarded_export( HMODULE module, const char *forward, LPCWSTR load_path ) { const IMAGE_EXPORT_DIRECTORY *exports; DWORD exp_size; @@ -351,13 +352,27 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward ) if (!(wm = find_basename_module( mod_name ))) { - ERR("module not found for forward '%s' used by %s\n", - forward, debugstr_w(get_modref(module)->ldr.FullDllName.Buffer) ); - return NULL; + TRACE( "delay loading %s for '%s'\n", debugstr_w(mod_name), forward ); + if (load_dll( load_path, mod_name, 0, &wm ) == STATUS_SUCCESS && + !(wm->ldr.Flags & LDR_DONT_RESOLVE_REFS)) + { + if (process_attach( wm, NULL ) != STATUS_SUCCESS) + { + LdrUnloadDll( wm->ldr.BaseAddress ); + wm = NULL; + } + } + + if (!wm) + { + ERR( "module not found for forward '%s' used by %s\n", + forward, debugstr_w(get_modref(module)->ldr.FullDllName.Buffer) ); + return NULL; + } } if ((exports = RtlImageDirectoryEntryToData( wm->ldr.BaseAddress, TRUE, IMAGE_DIRECTORY_ENTRY_EXPORT, &exp_size ))) - proc = find_named_export( wm->ldr.BaseAddress, exports, exp_size, end + 1, -1 ); + proc = find_named_export( wm->ldr.BaseAddress, exports, exp_size, end + 1, -1, load_path ); if (!proc) { @@ -378,7 +393,7 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward ) * The loader_section must be locked while calling this function. */ static FARPROC find_ordinal_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY *exports, - DWORD exp_size, DWORD ordinal ) + DWORD exp_size, DWORD ordinal, LPCWSTR load_path ) { FARPROC proc; const DWORD *functions = get_rva( module, exports->AddressOfFunctions ); @@ -395,7 +410,7 @@ static FARPROC find_ordinal_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY /* if the address falls into the export dir, it's a forward */ if (((const char *)proc >= (const char *)exports) && ((const char *)proc < (const char *)exports + exp_size)) - return find_forwarded_export( module, (const char *)proc ); + return find_forwarded_export( module, (const char *)proc, load_path ); if (TRACE_ON(snoop)) { @@ -418,7 +433,7 @@ static FARPROC find_ordinal_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY * The loader_section must be locked while calling this function. */ static FARPROC find_named_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY *exports, - DWORD exp_size, const char *name, int hint ) + DWORD exp_size, const char *name, int hint, LPCWSTR load_path ) { const WORD *ordinals = get_rva( module, exports->AddressOfNameOrdinals ); const DWORD *names = get_rva( module, exports->AddressOfNames ); @@ -429,7 +444,7 @@ static FARPROC find_named_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY * { char *ename = get_rva( module, names[hint] ); if (!strcmp( ename, name )) - return find_ordinal_export( module, exports, exp_size, ordinals[hint] ); + return find_ordinal_export( module, exports, exp_size, ordinals[hint], load_path ); } /* then do a binary search */ @@ -438,7 +453,7 @@ static FARPROC find_named_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY * int res, pos = (min + max) / 2; char *ename = get_rva( module, names[pos] ); if (!(res = strcmp( ename, name ))) - return find_ordinal_export( module, exports, exp_size, ordinals[pos] ); + return find_ordinal_export( module, exports, exp_size, ordinals[pos], load_path ); if (res > 0) max = pos - 1; else min = pos + 1; } @@ -548,7 +563,7 @@ static WINE_MODREF *import_dll( HMODULE module, const IMAGE_IMPORT_DESCRIPTOR *d int ordinal = IMAGE_ORDINAL(import_list->u1.Ordinal); thunk_list->u1.Function = (ULONG_PTR)find_ordinal_export( imp_mod, exports, exp_size, - ordinal - exports->Base ); + ordinal - exports->Base, load_path ); if (!thunk_list->u1.Function) { thunk_list->u1.Function = allocate_stub( name, IntToPtr(ordinal) ); @@ -563,7 +578,8 @@ static WINE_MODREF *import_dll( HMODULE module, const IMAGE_IMPORT_DESCRIPTOR *d IMAGE_IMPORT_BY_NAME *pe_name; pe_name = get_rva( module, (DWORD)import_list->u1.AddressOfData ); thunk_list->u1.Function = (ULONG_PTR)find_named_export( imp_mod, exports, exp_size, - (const char*)pe_name->Name, pe_name->Hint ); + (const char*)pe_name->Name, + pe_name->Hint, load_path ); if (!thunk_list->u1.Function) { thunk_list->u1.Function = allocate_stub( name, (const char*)pe_name->Name ); @@ -1196,8 +1212,9 @@ NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE module, const ANSI_STRING *name, else if ((exports = RtlImageDirectoryEntryToData( module, TRUE, IMAGE_DIRECTORY_ENTRY_EXPORT, &exp_size ))) { - void *proc = name ? find_named_export( module, exports, exp_size, name->Buffer, -1 ) - : find_ordinal_export( module, exports, exp_size, ord - exports->Base ); + LPCWSTR load_path = NtCurrentTeb()->Peb->ProcessParameters->DllPath.Buffer; + void *proc = name ? find_named_export( module, exports, exp_size, name->Buffer, -1, load_path ) + : find_ordinal_export( module, exports, exp_size, ord - exports->Base, load_path ); if (proc) { *address = proc; @@ -1812,6 +1829,7 @@ static NTSTATUS load_dll( LPCWSTR load_path, LPCWSTR libname, DWORD flags, WINE_ TRACE( "looking for %s in %s\n", debugstr_w(libname), debugstr_w(load_path) ); + *pwm = NULL; filename = buffer; size = sizeof(buffer); for (;;)
1
0
0
0
Alexandre Julliard : winebuild: Improved checks for missing forward entry point targets.
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: e6fe7341f503b317eacd1380a7a1529e52c49c17 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e6fe7341f503b317eacd1380a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 6 21:22:34 2007 +0100 winebuild: Improved checks for missing forward entry point targets. --- tools/winebuild/import.c | 55 +++++++++++++++++++++------------------------ 1 files changed, 26 insertions(+), 29 deletions(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 4487921..a1fdbd0 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -424,39 +424,39 @@ static int check_unused( const struct import* imp, const DLLSPEC *spec ) } /* check if a given forward does exist in one of the imported dlls */ -static void check_undefined_forward( DLLSPEC *spec, ORDDEF *odp ) +static void check_undefined_forwards( DLLSPEC *spec ) { char *link_name, *api_name, *dll_name, *p; - int i, found = 0; + int i, j; - assert( odp->flags & FLAG_FORWARD ); + for (i = 0; i < spec->nb_entry_points; i++) + { + ORDDEF *odp = &spec->entry_points[i]; - link_name = xstrdup( odp->link_name ); - p = strrchr( link_name, '.' ); - *p = 0; - api_name = p + 1; - dll_name = get_dll_name( link_name, NULL ); + if (!(odp->flags & FLAG_FORWARD)) continue; - for (i = 0; i < nb_imports; i++) - { - struct import *imp = dll_imports[i]; + link_name = xstrdup( odp->link_name ); + p = strrchr( link_name, '.' ); + *p = 0; + api_name = p + 1; + dll_name = get_dll_name( link_name, NULL ); - if (!strcasecmp( imp->spec->file_name, dll_name )) + for (j = 0; j < nb_imports; j++) { - if (find_export( api_name, imp->exports, imp->nb_exports )) - { - found = 1; - break; - } + struct import *imp = dll_imports[j]; + + if (strcasecmp( imp->spec->file_name, dll_name )) continue; + if (!find_export( api_name, imp->exports, imp->nb_exports )) + warning( "%s:%d: forward '%s' not found in %s\n", + spec->src_name, odp->lineno, odp->link_name, imp->spec->file_name ); + break; } + if (j == nb_imports) + warning( "%s:%d: forward '%s' not found in the imported dll list\n", + spec->src_name, odp->lineno, odp->link_name ); + free( link_name ); + free( dll_name ); } - - free( link_name ); - free( dll_name ); - - if (!found) - warning( "%s:%d: forward '%s' not found in the imported dll list\n", - spec->src_name, odp->lineno, odp->link_name ); } /* flag the dll exports that link to an undefined symbol */ @@ -468,11 +468,7 @@ static void check_undefined_exports( DLLSPEC *spec ) { ORDDEF *odp = &spec->entry_points[i]; if (odp->type == TYPE_STUB) continue; - if (odp->flags & FLAG_FORWARD) - { - check_undefined_forward( spec, odp ); - continue; - } + if (odp->flags & FLAG_FORWARD) continue; if (find_name( odp->link_name, &undef_symbols )) { switch(odp->type) @@ -597,6 +593,7 @@ int resolve_imports( DLLSPEC *spec ) ORDDEF *odp; sort_names( &ignore_symbols ); + check_undefined_forwards( spec ); for (i = 0; i < nb_imports; i++) {
1
0
0
0
Alexandre Julliard : winebuild: Print a warning when failing to import a data export.
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: 32fc1acb1c26adc200d45df074459c1ba6126bb9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=32fc1acb1c26adc200d45df07…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 6 21:14:07 2007 +0100 winebuild: Print a warning when failing to import a data export. --- tools/winebuild/import.c | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 1e9cfe3..4487921 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -254,19 +254,13 @@ static int read_import_lib( struct import *imp ) nb_delayed++; } - imp->exports = xmalloc( spec->nb_entry_points * sizeof(*imp->exports) ); - - for (i = 0; i < spec->nb_entry_points; i++) + if (spec->nb_entry_points) { - ORDDEF *odp = &spec->entry_points[i]; - - if (odp->type != TYPE_STDCALL && odp->type != TYPE_CDECL) continue; - if (odp->flags & FLAG_PRIVATE) continue; - imp->exports[imp->nb_exports++] = odp; - } - imp->exports = xrealloc( imp->exports, imp->nb_exports * sizeof(*imp->exports) ); - if (imp->nb_exports) + imp->exports = xmalloc( spec->nb_entry_points * sizeof(*imp->exports) ); + for (i = 0; i < spec->nb_entry_points; i++) + imp->exports[imp->nb_exports++] = &spec->entry_points[i]; qsort( imp->exports, imp->nb_exports, sizeof(*imp->exports), func_cmp ); + } return 1; } @@ -614,15 +608,22 @@ int resolve_imports( DLLSPEC *spec ) odp = find_export( undef_symbols.names[j], imp->exports, imp->nb_exports ); if (odp) { - add_import_func( imp, odp ); - remove_name( &undef_symbols, j-- ); - removed++; + if (odp->flags & FLAG_PRIVATE) continue; + if (odp->type != TYPE_STDCALL && odp->type != TYPE_CDECL) + warning( "winebuild: Data export '%s' cannot be imported from %s\n", + odp->link_name, imp->spec->file_name ); + else + { + add_import_func( imp, odp ); + remove_name( &undef_symbols, j-- ); + removed++; + } } } if (!removed && check_unused( imp, spec )) { /* the dll is not used, get rid of it */ - warning( "%s imported but no symbols used\n", imp->spec->file_name ); + warning( "winebuild: %s imported but no symbols used\n", imp->spec->file_name ); remove_import_dll( i ); i--; }
1
0
0
0
Alexandre Julliard : Removed some unneeded imports.
by Alexandre Julliard
07 Dec '07
07 Dec '07
Module: wine Branch: master Commit: ad9396302dcbe1ff46c4f54586c4b6b2efb9839f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ad9396302dcbe1ff46c4f5458…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 6 20:42:08 2007 +0100 Removed some unneeded imports. --- dlls/advpack/Makefile.in | 2 +- dlls/advpack/tests/Makefile.in | 2 +- dlls/browseui/tests/Makefile.in | 2 +- dlls/cabinet/tests/Makefile.in | 2 +- dlls/d3d8/Makefile.in | 2 +- dlls/d3d9/Makefile.in | 2 +- dlls/d3dx8/Makefile.in | 2 +- dlls/dmime/Makefile.in | 2 +- dlls/dmsynth/Makefile.in | 2 +- dlls/dmusic/Makefile.in | 2 +- dlls/dmusic32/Makefile.in | 2 +- dlls/dswave/Makefile.in | 2 +- dlls/dwmapi/Makefile.in | 2 +- dlls/gdiplus/Makefile.in | 2 +- dlls/gdiplus/tests/Makefile.in | 2 +- dlls/glu32/Makefile.in | 2 +- dlls/gphoto2.ds/Makefile.in | 2 +- dlls/hhctrl.ocx/Makefile.in | 2 +- dlls/hid/Makefile.in | 2 +- dlls/infosoft/Makefile.in | 2 +- dlls/infosoft/tests/Makefile.in | 2 +- dlls/inkobj/Makefile.in | 2 +- dlls/inseng/Makefile.in | 2 +- dlls/iphlpapi/tests/Makefile.in | 2 +- dlls/itss/Makefile.in | 2 +- dlls/mapi32/Makefile.in | 2 +- dlls/mlang/Makefile.in | 2 +- dlls/mscat32/Makefile.in | 2 +- dlls/mscms/Makefile.in | 2 +- dlls/mshtml/Makefile.in | 2 +- dlls/msvcrtd/Makefile.in | 2 +- dlls/msvfw32/Makefile.in | 2 +- dlls/mswsock/Makefile.in | 2 +- dlls/msxml3/Makefile.in | 2 +- dlls/netapi32/Makefile.in | 2 +- dlls/netapi32/tests/Makefile.in | 2 +- dlls/objsel/Makefile.in | 2 +- dlls/odbccp32/Makefile.in | 2 +- dlls/odbccp32/tests/Makefile.in | 2 +- dlls/opengl32/Makefile.in | 2 +- dlls/pstorec/Makefile.in | 2 +- dlls/qcap/Makefile.in | 2 +- dlls/quartz/tests/Makefile.in | 2 +- dlls/query/Makefile.in | 2 +- dlls/riched20/tests/Makefile.in | 2 +- dlls/riched32/tests/Makefile.in | 2 +- dlls/sane.ds/Makefile.in | 2 +- dlls/schannel/tests/Makefile.in | 2 +- dlls/secur32/Makefile.in | 2 +- dlls/shell32/tests/Makefile.in | 2 +- dlls/twain_32/Makefile.in | 2 +- dlls/uxtheme/Makefile.in | 2 +- dlls/vmm.vxd/Makefile.in | 2 +- dlls/winealsa.drv/Makefile.in | 2 +- dlls/winedos/Makefile.in | 2 +- dlls/wintrust/tests/Makefile.in | 2 +- 56 files changed, 56 insertions(+), 56 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ad9396302dcbe1ff46c4f…
1
0
0
0
Alexander Nicolaysen Sørnes : Remove some no longer used voting code
by Chris Morgan
07 Dec '07
07 Dec '07
Module: appdb Branch: master Commit: 18a3b97694127009a7b164b8104005536ce811e1 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=18a3b97694127009a7b164b8…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Fri Dec 7 01:16:32 2007 +0100 Remove some no longer used voting code --- include/version.php | 4 - include/vote.php | 186 --------------------------------------------------- updatevote.php | 16 ----- 3 files changed, 0 insertions(+), 206 deletions(-) diff --git a/include/version.php b/include/version.php index 37f3d79..70c176a 100644 --- a/include/version.php +++ b/include/version.php @@ -794,10 +794,6 @@ class version { $oApp = $this->objectGetParent(); - // show Vote Menu - if($_SESSION['current']->isLoggedIn()) - apidb_sidebar_add("vote_menu"); - // cat $oCategory = new Category($oApp->iCatId); $oCategory->display($oApp->iAppId, $this->iVersionId); diff --git a/include/vote.php b/include/vote.php index e636571..c97295e 100644 --- a/include/vote.php +++ b/include/vote.php @@ -239,24 +239,6 @@ function vote_count($iVersionId, $iUserId = null) return query_num_rows($hResult); } - -/** - * total votes by userId - */ -function vote_count_user_total($iUserId = null) -{ - if(!$iUserId) - { - if($_SESSION['current']->isLoggedIn()) - $iUserId = $_SESSION['current']->iUserId; - else - return 0; - } - $hResult = query_parameters("SELECT * FROM appVotes WHERE userId = '?'", $iUserId); - return query_num_rows($hResult); -} - - /* * total votes for versionId */ @@ -267,172 +249,4 @@ function vote_count_version_total($iVersionId) return query_num_rows($hResult); } - -/** - * add a vote for appId - */ -function vote_add($iVersionId, $iSlot, $iUserId = null) -{ - if(!$iUserId) - { - if($_SESSION['current']->isLoggedIn()) - $iUserId = $_SESSION['current']->iUserId; - else - return; - } - - if($iSlot > MAX_VOTES) - return; - - vote_remove($iSlot, $iUserId); - - query_parameters("INSERT INTO appVotes (id, time, versionId, userId, slot) - VALUES (?, ?, '?', '?', '?')", "null", "NOW()", - $iVersionId, $iUserId, $iSlot); -} - - -/** - * remove vote for a slot - */ -function vote_remove($iSlot, $iUserId = null) -{ - if(!$iUserId) - { - if($_SESSION['current']->isLoggedIn()) - $iUserId = $_SESSION['current']->iUserId; - else - return; - } - - $sQuery = "DELETE FROM appVotes WHERE userId = '?' AND slot = '?'"; - query_parameters($sQuery, $iUserId, $iSlot); -} - - -function vote_get_user_votes($iUserId = null) -{ - if(!$iUserId) - { - if($_SESSION['current']->isLoggedIn()) - $iUserId = $_SESSION['current']->iUserId; - if(!$iUserId) - return array(); - } - $hResult = query_parameters("SELECT * FROM appVotes WHERE userId = '?'", $iUserId); - if(!$hResult) - return array(); - - $obs = array(); - while($oRow = query_fetch_object($hResult)) - $obs[$oRow->slot] = $oRow; - return $obs; -} - - -function vote_menu() -{ - global $aClean; - - $m = new htmlmenu("Votes","updatevote.php"); - - $oVersion = new version($aClean['iVersionId']); - - if($oVersion->iObsoleteBy) - { - $m->add("This version is marked as obsolete, so you cannot vote for it."); - } else - { - $votes = vote_get_user_votes(); - - for($i = 1;$i <= MAX_VOTES; $i++) - { - if(isset($votes[$i])) - $str = Version::fullNameLink($votes[$i]->versionId); - else - $str = "No App Selected"; - - $m->add("<input type=radio name=iSlot value='$i'> $str"); - } - - $m->addmisc(" "); - - $m->add("<input type=submit name=sClear value=' Clear Vote ' class=votebutton>"); - $m->add("<input type=submit name=sVote value='Vote for App' class=votebutton>"); - - $m->addmisc("<input type=hidden name=iVersionId value={$aClean['iVersionId']}>"); - - $m->add("View Results", BASE."votestats.php"); - $m->add("Voting Help", BASE."help/?sTopic=voting"); - } - - $m->done(1); -} - - -function vote_update($vars) -{ - if(!$_SESSION['current']->isLoggedIn()) - util_show_error_page_and_exit("You must be logged in to vote"); - - $oVersion = new version($vars['iVersionId']); - - if( !is_numeric($vars['iVersionId']) OR !is_numeric($vars['iSlot'])) - { - if(is_numeric($vars['iVersionId'])) - { - addmsg("You need to select a voting slot", "red"); - util_redirect_and_exit($oVersion->objectMakeUrl()); - } else - { - util_redirect_and_exit(apidb_fullurl("index.php")); - } - - return; - } - - if($vars["sVote"]) - { - addmsg("Registered vote for App #".$vars['iVersionId'], "green"); - vote_add($vars['iVersionId'], $vars['iSlot']); - } else if($vars['sClear']) - { - /* see if we have a vote in this slot, if we don't there is */ - /* little reason to remove it or even mention that we did anything */ - if(is_vote_in_slot($vars['iSlot'])) - { - vote_remove($vars['iSlot']); - addmsg("Removed vote for App #".$vars['iVersionId'], "green"); - } - } - - util_redirect_and_exit($oVersion->objectMakeUrl()); -} - -// tell us if there is a vote in a given slot so we don't -// display incorrect information to the user or go -// through the trouble of trying to remove a vote that doesn't exist -function is_vote_in_slot($iSlot, $iUserId = null) -{ - if(!$iUserId) - { - if($_SESSION['current']->isLoggedIn()) - $iUserId = $_SESSION['current']->iUserId; - else - return; - } - - $sQuery = "SELECT COUNT(*) as count from appVotes WHERE userId = '?' AND slot = '?'"; - if($hResult = query_parameters($sQuery, $iUserId, $iSlot)) - { - $oRow = query_fetch_object($hResult); - if($oRow->count != 0) - return true; - else - return false; - } - - return false; -} - ?> diff --git a/updatevote.php b/updatevote.php deleted file mode 100644 index 516f50e..0000000 --- a/updatevote.php +++ /dev/null @@ -1,16 +0,0 @@ -<?php -/*************************/ -/* code to modify voting */ -/*************************/ - -/* - * application environment - */ -require("path.php"); -require(BASE."include/incl.php"); -require(BASE."include/vote.php"); - -vote_update($aClean); - -apidb_footer(); -?>
1
0
0
0
Alexander Nicolaysen Sørnes : version: Only show vote link when logged in
by Chris Morgan
07 Dec '07
07 Dec '07
Module: appdb Branch: master Commit: 93c01ad56b2322fc6e059348b7eea01f5eef3785 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=93c01ad56b2322fc6e059348…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Thu Dec 6 09:43:34 2007 +0100 version: Only show vote link when logged in --- include/version.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/include/version.php b/include/version.php index 1caeaa4..37f3d79 100644 --- a/include/version.php +++ b/include/version.php @@ -822,9 +822,13 @@ class version { $oM = new objectManager("voteManager", "Vote"); $oM->setReturnTo($this->objectMakeUrl()); // Votes + if($_SESSION['current']->isLoggedIn()) + $shVoteLink = ' <a href="'.$oM->makeUrl("edit", $_SESSION['current']->iUserId).'&iVersionId='.$this->iVersionId.'">Vote</a>'; + else + $shVoteLink = ''; echo html_tr(array( "<b>Votes</b>", - vote_count_version_total($this->iVersionId).' <a href="'.$oM->makeUrl("edit", $_SESSION['current']->iUserId).'&iVersionId='.$this->iVersionId.'">Vote</a>'), + vote_count_version_total($this->iVersionId).$shVoteLink), "color0"); if($this->sTestedRating != "/" && $this->sTestedRating)
1
0
0
0
← Newer
1
...
62
63
64
65
66
67
68
...
83
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
Results per page:
10
25
50
100
200