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 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
4 participants
839 discussions
Start a n
N
ew thread
Eric Pouech : dbghelp: Prepare module loading functions to be switched to Unicode module storage.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: c75fb89a6485e29e50c67ee57ae6ef50952bf901 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c75fb89a6485e29e50c67ee57…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr> Date: Wed Feb 21 21:54:54 2007 +0100 dbghelp: Prepare module loading functions to be switched to Unicode module storage. --- dlls/dbghelp/module.c | 171 ++++++++++++++++++++++++++---------------------- 1 files changed, 93 insertions(+), 78 deletions(-) diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c index 2810f03..de50f0e 100644 --- a/dlls/dbghelp/module.c +++ b/dlls/dbghelp/module.c @@ -384,21 +384,104 @@ enum module_type module_get_type_by_name(const char* name) DWORD WINAPI SymLoadModule(HANDLE hProcess, HANDLE hFile, const char* ImageName, const char* ModuleName, DWORD BaseOfDll, DWORD SizeOfDll) { + return SymLoadModuleEx(hProcess, hFile, ImageName, ModuleName, BaseOfDll, + SizeOfDll, NULL, 0); +} + +/*********************************************************************** + * SymLoadModuleEx (DBGHELP.@) + */ +DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName, + PCSTR ModuleName, DWORD64 BaseOfDll, DWORD DllSize, + PMODLOAD_DATA Data, DWORD Flags) +{ + LPWSTR wImageName, wModuleName; + unsigned len; + DWORD64 ret; + + TRACE("(%p %p %s %s %s %08x %p %08x)\n", + hProcess, hFile, debugstr_a(ImageName), debugstr_a(ModuleName), + wine_dbgstr_longlong(BaseOfDll), DllSize, Data, Flags); + + if (ImageName) + { + len = MultiByteToWideChar(CP_ACP, 0, ImageName, -1, NULL, 0); + wImageName = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, ImageName, -1, wImageName, len); + } + else wImageName = NULL; + if (ModuleName) + { + len = MultiByteToWideChar(CP_ACP, 0, ModuleName, -1, NULL, 0); + wModuleName = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, ModuleName, -1, wModuleName, len); + } + else wModuleName = NULL; + + ret = SymLoadModuleExW(hProcess, hFile, wImageName, wModuleName, + BaseOfDll, DllSize, Data, Flags); + HeapFree(GetProcessHeap(), 0, wImageName); + HeapFree(GetProcessHeap(), 0, wModuleName); + return ret; +} + +/*********************************************************************** + * SymLoadModuleExW (DBGHELP.@) + */ +DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageName, + PCWSTR wModuleName, DWORD64 BaseOfDll, DWORD SizeOfDll, + PMODLOAD_DATA Data, DWORD Flags) +{ struct process* pcs; struct module* module = NULL; + char ImageName[MAX_PATH], amodname[MAX_PATH], *ModuleName; - TRACE("(%p %p %s %s %08x %08x)\n", - hProcess, hFile, debugstr_a(ImageName), debugstr_a(ModuleName), - BaseOfDll, SizeOfDll); - pcs = process_find_by_handle(hProcess); - if (!pcs) return FALSE; + TRACE("(%p %p %s %s %s %08x %p %08x)\n", + hProcess, hFile, debugstr_w(wImageName), debugstr_w(wModuleName), + wine_dbgstr_longlong(BaseOfDll), SizeOfDll, Data, Flags); + + if (Data) + FIXME("Unsupported load data parameter %p for %s\n", + Data, debugstr_w(wImageName)); + if (!validate_addr64(BaseOfDll)) return FALSE; + + if (!(pcs = process_find_by_handle(hProcess))) return FALSE; + + if (Flags & SLMFLAG_VIRTUAL) + { + WideCharToMultiByte(CP_ACP,0, wImageName, -1, ImageName, MAX_PATH, + NULL, NULL); + module = module_new(pcs, ImageName, module_get_type_by_name(ImageName), + TRUE, (DWORD)BaseOfDll, SizeOfDll, 0, 0); + if (!module) return FALSE; + if (wModuleName) + { + WideCharToMultiByte(CP_ACP,0, wModuleName, -1, ModuleName = amodname, MAX_PATH, + NULL, NULL); + module_set_module(module, ModuleName); + } + module->module.SymType = SymVirtual; + + return TRUE; + } + if (Flags & ~(SLMFLAG_VIRTUAL)) + FIXME("Unsupported Flags %08x for %s\n", Flags, debugstr_w(wImageName)); /* force transparent ELF loading / unloading */ elf_synchronize_module_list(pcs); /* this is a Wine extension to the API just to redo the synchronisation */ - if (!ImageName && !hFile) return 0; + if (!wImageName && !hFile) return 0; + + WideCharToMultiByte(CP_ACP,0, wImageName, -1, ImageName, MAX_PATH, + NULL, NULL); + + if (wModuleName) + WideCharToMultiByte(CP_ACP,0, wModuleName, -1, ModuleName = amodname, MAX_PATH, + NULL, NULL); + else + ModuleName = NULL; if (module_is_elf_container_loaded(pcs, ImageName, ModuleName)) { @@ -406,21 +489,21 @@ DWORD WINAPI SymLoadModule(HANDLE hProcess, HANDLE hFile, const char* ImageName, if ((module = pe_load_module_from_pcs(pcs, ImageName, ModuleName, BaseOfDll, SizeOfDll))) goto done; - WARN("Couldn't locate %s\n", ImageName); + WARN("Couldn't locate %s\n", debugstr_w(wImageName)); return 0; } - TRACE("Assuming %s as native DLL\n", ImageName); + TRACE("Assuming %s as native DLL\n", debugstr_w(wImageName)); if (!(module = pe_load_module(pcs, ImageName, hFile, BaseOfDll, SizeOfDll))) { if (module_get_type_by_name(ImageName) == DMT_ELF && (module = elf_load_module(pcs, ImageName, BaseOfDll))) goto done; FIXME("Should have successfully loaded debug information for image %s\n", - ImageName); + debugstr_w(wImageName)); if ((module = pe_load_module_from_pcs(pcs, ImageName, ModuleName, BaseOfDll, SizeOfDll))) goto done; - WARN("Couldn't locate %s\n", ImageName); + WARN("Couldn't locate %s\n", debugstr_w(wImageName)); return 0; } module->module.NumSyms = module->ht_symbols.num_elts; @@ -436,74 +519,6 @@ done: } /*********************************************************************** - * SymLoadModuleEx (DBGHELP.@) - */ -DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName, - PCSTR ModuleName, DWORD64 BaseOfDll, DWORD DllSize, - PMODLOAD_DATA Data, DWORD Flags) -{ - TRACE("(%p %p %s %s %s %08x %p %08x)\n", - hProcess, hFile, debugstr_a(ImageName), debugstr_a(ModuleName), - wine_dbgstr_longlong(BaseOfDll), DllSize, Data, Flags); - - if (Data) - FIXME("Unsupported load data parameter %p for %s\n", Data, ImageName); - if (!validate_addr64(BaseOfDll)) return FALSE; - if (Flags & SLMFLAG_VIRTUAL) - { - struct process* pcs = process_find_by_handle(hProcess); - struct module* module; - if (!pcs) return FALSE; - - module = module_new(pcs, ImageName, module_get_type_by_name(ImageName), TRUE, - (DWORD)BaseOfDll, DllSize, 0, 0); - if (!module) return FALSE; - if (ModuleName) - module_set_module(module, ModuleName); - module->module.SymType = SymVirtual; - - return TRUE; - } - if (Flags & ~(SLMFLAG_VIRTUAL)) - FIXME("Unsupported Flags %08x for %s\n", Flags, ImageName); - - return SymLoadModule(hProcess, hFile, ImageName, ModuleName, (DWORD)BaseOfDll, DllSize); -} - -/*********************************************************************** - * SymLoadModuleExW (DBGHELP.@) - */ -DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageName, - PCWSTR wModuleName, DWORD64 BaseOfDll, DWORD DllSize, - PMODLOAD_DATA Data, DWORD Flags) -{ - LPSTR ImageName, ModuleName; - unsigned len; - BOOL ret; - - if (wImageName) - { - len = WideCharToMultiByte(CP_ACP,0, wImageName, -1, NULL, 0, NULL, NULL); - ImageName = HeapAlloc(GetProcessHeap(), 0, len); - WideCharToMultiByte(CP_ACP,0, wImageName, -1, ImageName, len, NULL, NULL); - } - else ImageName = NULL; - if (wModuleName) - { - len = WideCharToMultiByte(CP_ACP,0, wModuleName, -1, NULL, 0, NULL, NULL); - ModuleName = HeapAlloc(GetProcessHeap(), 0, len); - WideCharToMultiByte(CP_ACP,0, wModuleName, -1, ModuleName, len, NULL, NULL); - } - else ModuleName = NULL; - - ret = SymLoadModuleEx(hProcess, hFile, ImageName, ModuleName, - BaseOfDll, DllSize, Data, Flags); - HeapFree(GetProcessHeap(), 0, ImageName); - HeapFree(GetProcessHeap(), 0, ModuleName); - return ret; -} - -/*********************************************************************** * SymLoadModule64 (DBGHELP.@) */ DWORD64 WINAPI SymLoadModule64(HANDLE hProcess, HANDLE hFile, PCSTR ImageName,
1
0
0
0
Eric Pouech : dbghelp: Make the module info functions ready for the Unicode move.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: 50de2e2e4a1f4c210176cd4cd9bfab5a4cdad7c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=50de2e2e4a1f4c210176cd4cd…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr> Date: Wed Feb 21 21:54:49 2007 +0100 dbghelp: Make the module info functions ready for the Unicode move. --- dlls/dbghelp/module.c | 222 +++++++++++++++++++++++++++---------------------- 1 files changed, 122 insertions(+), 100 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=50de2e2e4a1f4c210176c…
1
0
0
0
Eric Pouech : dbghelp: Rewrote the loaded modules enumeration so that Unicode version is the core .
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: fcd3972fa816ac60b0f189c2fed2765e25ea9cbe URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fcd3972fa816ac60b0f189c2f…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr> Date: Wed Feb 21 21:54:44 2007 +0100 dbghelp: Rewrote the loaded modules enumeration so that Unicode version is the core. --- dlls/dbghelp/module.c | 111 +++++++++++++++++++++++++------------------------ 1 files changed, 57 insertions(+), 54 deletions(-) diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c index ebee8d9..14731d7 100644 --- a/dlls/dbghelp/module.c +++ b/dlls/dbghelp/module.c @@ -628,100 +628,103 @@ BOOL WINAPI SymEnumerateModules64(HANDLE hProcess, * EnumerateLoadedModules64 (DBGHELP.@) * */ +struct enum_load_modW64_64 +{ + PENUMLOADED_MODULES_CALLBACK64 cb; + PVOID user; + char module[MAX_PATH]; +}; + +static BOOL CALLBACK enum_load_modW64_64(PWSTR name, DWORD64 base, ULONG size, + PVOID user) +{ + struct enum_load_modW64_64* x = user; + + WideCharToMultiByte(CP_ACP, 0, name, -1, x->module, sizeof(x->module), NULL, NULL); + return x->cb(x->module, base, size, x->user); +} + BOOL WINAPI EnumerateLoadedModules64(HANDLE hProcess, PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback, PVOID UserContext) { - HMODULE* hMods; - char base[256], mod[256]; - DWORD i, sz; - MODULEINFO mi; + struct enum_load_modW64_64 x; - hMods = HeapAlloc(GetProcessHeap(), 0, 256 * sizeof(hMods[0])); - if (!hMods) return FALSE; - - if (!EnumProcessModules(hProcess, hMods, 256 * sizeof(hMods[0]), &sz)) - { - /* hProcess should also be a valid process handle !! */ - FIXME("If this happens, bump the number in mod\n"); - HeapFree(GetProcessHeap(), 0, hMods); - return FALSE; - } - sz /= sizeof(HMODULE); - for (i = 0; i < sz; i++) - { - if (!GetModuleInformation(hProcess, hMods[i], &mi, sizeof(mi)) || - !GetModuleBaseNameA(hProcess, hMods[i], base, sizeof(base))) - continue; - module_fill_module(base, mod, sizeof(mod)); - EnumLoadedModulesCallback(mod, (DWORD_PTR)mi.lpBaseOfDll, mi.SizeOfImage, - UserContext); - } - HeapFree(GetProcessHeap(), 0, hMods); + x.cb = EnumLoadedModulesCallback; + x.user = UserContext; - return sz != 0 && i == sz; + return EnumerateLoadedModulesW64(hProcess, enum_load_modW64_64, &x); } /****************************************************************** * EnumerateLoadedModules (DBGHELP.@) * */ -struct enum_load_mod64_32 +struct enum_load_modW64_32 { PENUMLOADED_MODULES_CALLBACK cb; PVOID user; + char module[MAX_PATH]; }; -static BOOL CALLBACK enum_load_mod64_32(PSTR name, DWORD64 base, ULONG size, - PVOID user) +static BOOL CALLBACK enum_load_modW64_32(PWSTR name, DWORD64 base, ULONG size, + PVOID user) { - struct enum_load_mod64_32* x = user; - return x->cb(name, (DWORD)base, size, x->user); + struct enum_load_modW64_32* x = user; + WideCharToMultiByte(CP_ACP, 0, name, -1, x->module, sizeof(x->module), NULL, NULL); + return x->cb(x->module, (DWORD)base, size, x->user); } BOOL WINAPI EnumerateLoadedModules(HANDLE hProcess, PENUMLOADED_MODULES_CALLBACK EnumLoadedModulesCallback, PVOID UserContext) { - struct enum_load_mod64_32 x; + struct enum_load_modW64_32 x; x.cb = EnumLoadedModulesCallback; x.user = UserContext; - return EnumerateLoadedModules64(hProcess, enum_load_mod64_32, &x); + return EnumerateLoadedModulesW64(hProcess, enum_load_modW64_32, &x); } /****************************************************************** * EnumerateLoadedModulesW64 (DBGHELP.@) * */ -struct enum_load_mod64_W64 -{ - PENUMLOADED_MODULES_CALLBACKW64 cb; - PVOID user; - WCHAR module[MAX_PATH]; -}; - -static BOOL CALLBACK enum_load_mod64_W64(PSTR name, DWORD64 base, ULONG size, - PVOID user) -{ - struct enum_load_mod64_W64* x = user; - - MultiByteToWideChar(CP_ACP, 0, name, -1, - x->module, sizeof(x->module) / sizeof(WCHAR)); - return x->cb(x->module, base, size, x->user); -} - BOOL WINAPI EnumerateLoadedModulesW64(HANDLE hProcess, PENUMLOADED_MODULES_CALLBACKW64 EnumLoadedModulesCallback, PVOID UserContext) { - struct enum_load_mod64_W64 x; + HMODULE* hMods; + char base[256], mod[256]; + WCHAR modW[256]; + DWORD i, sz; + MODULEINFO mi; - x.cb = EnumLoadedModulesCallback; - x.user = UserContext; + hMods = HeapAlloc(GetProcessHeap(), 0, 256 * sizeof(hMods[0])); + if (!hMods) return FALSE; - return EnumerateLoadedModules64(hProcess, enum_load_mod64_W64, &x); + if (!EnumProcessModules(hProcess, hMods, 256 * sizeof(hMods[0]), &sz)) + { + /* hProcess should also be a valid process handle !! */ + FIXME("If this happens, bump the number in mod\n"); + HeapFree(GetProcessHeap(), 0, hMods); + return FALSE; + } + sz /= sizeof(HMODULE); + for (i = 0; i < sz; i++) + { + if (!GetModuleInformation(hProcess, hMods[i], &mi, sizeof(mi)) || + !GetModuleBaseNameA(hProcess, hMods[i], base, sizeof(base))) + continue; + module_fill_module(base, mod, sizeof(mod)); + MultiByteToWideChar(CP_ACP, 0, mod, -1, modW, sizeof(modW) / sizeof(modW)); + EnumLoadedModulesCallback(modW, (DWORD_PTR)mi.lpBaseOfDll, mi.SizeOfImage, + UserContext); + } + HeapFree(GetProcessHeap(), 0, hMods); + + return sz != 0 && i == sz; } /******************************************************************
1
0
0
0
Eric Pouech : dbghelp: Added an ANSI copy of the module name ( useful for next patches).
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: aac77c98a261c4d7edac7f789fde32e335f5d494 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aac77c98a261c4d7edac7f789…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr> Date: Wed Feb 21 21:54:39 2007 +0100 dbghelp: Added an ANSI copy of the module name (useful for next patches). --- dlls/dbghelp/dbghelp_private.h | 6 +++++- dlls/dbghelp/dwarf.c | 8 ++++---- dlls/dbghelp/elf_module.c | 24 ++++++++++++------------ dlls/dbghelp/module.c | 7 ++++--- dlls/dbghelp/msc.c | 2 +- dlls/dbghelp/pe_module.c | 2 +- dlls/dbghelp/symbol.c | 34 +++++++++++++++++----------------- dlls/dbghelp/type.c | 2 +- 8 files changed, 45 insertions(+), 40 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=aac77c98a261c4d7edac7…
1
0
0
0
Eric Pouech : dbghelp: Added helper to define the module's name.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: 33c8ffc301eb251b65f4e444f26b8ba62d498b41 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=33c8ffc301eb251b65f4e444f…
Author: Eric Pouech <eric.pouech(a)wanadoo.fr> Date: Wed Feb 21 21:54:33 2007 +0100 dbghelp: Added helper to define the module's name. --- dlls/dbghelp/dbghelp_private.h | 2 ++ dlls/dbghelp/module.c | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h index 83c549d..be6b7e6 100644 --- a/dlls/dbghelp/dbghelp_private.h +++ b/dlls/dbghelp/dbghelp_private.h @@ -447,6 +447,8 @@ extern enum module_type extern void module_reset_debug_info(struct module* module); extern BOOL module_remove(struct process* pcs, struct module* module); +extern void module_set_module(struct module* module, const char* name); + /* msc.c */ extern BOOL pe_load_debug_directory(const struct process* pcs, struct module* module, diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c index e7214b3..e63b576 100644 --- a/dlls/dbghelp/module.c +++ b/dlls/dbghelp/module.c @@ -79,6 +79,11 @@ static void module_fill_module(const char* in, char* out, size_t size) while ((*out = tolower(*out))) out++; } +void module_set_module(struct module* module, const char* name) +{ + module_fill_module(name, module->module.ModuleName, sizeof(module->module.ModuleName)); +} + static const char* get_module_type(enum module_type type, BOOL virtual) { switch (type) @@ -116,8 +121,7 @@ struct module* module_new(struct process* pcs, const char* name, module->module.SizeOfStruct = sizeof(module->module); module->module.BaseOfImage = mod_addr; module->module.ImageSize = size; - module_fill_module(name, module->module.ModuleName, - sizeof(module->module.ModuleName)); + module_set_module(module, name); module->module.ImageName[0] = '\0'; lstrcpynA(module->module.LoadedImageName, name, sizeof(module->module.LoadedImageName)); module->module.SymType = SymNone; @@ -423,7 +427,7 @@ done: * of ImageName. Overwrite it, if we have better information */ if (ModuleName) - lstrcpynA(module->module.ModuleName, ModuleName, sizeof(module->module.ModuleName)); + module_set_module(module, ModuleName); lstrcpynA(module->module.ImageName, ImageName, sizeof(module->module.ImageName)); return module->module.BaseOfImage; @@ -453,7 +457,7 @@ DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName, (DWORD)BaseOfDll, DllSize, 0, 0); if (!module) return FALSE; if (ModuleName) - lstrcpynA(module->module.ModuleName, ModuleName, sizeof(module->module.ModuleName)); + module_set_module(module, ModuleName); module->module.SymType = SymVirtual; return TRUE;
1
0
0
0
Misha Koshelev : oleview: Account for unnamed right hand side parameter of propput.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: a85895d2401f146a6e275e55e51c7e5b1ddf5122 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a85895d2401f146a6e275e55e…
Author: Misha Koshelev <mk144210(a)bcm.tmc.edu> Date: Thu Feb 22 00:39:52 2007 -0600 oleview: Account for unnamed right hand side parameter of propput. --- programs/oleview/typelib.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c index 91c1775..c452343 100644 --- a/programs/oleview/typelib.c +++ b/programs/oleview/typelib.c @@ -437,6 +437,7 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent) BSTR bstrName, *bstrParamNames; WCHAR wszText[MAX_LOAD_STRING]; WCHAR wszAfter[MAX_LOAD_STRING]; + WCHAR szRhs[] = {'r','h','s',0}; /* Right-hand side of a propput */ BOOL bFirst; U(tvis).item.mask = TVIF_TEXT|TVIF_PARAM; @@ -531,10 +532,10 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent) AddToTLDataStrW(tld, bstrName); AddToTLDataStrW(tld, wszOpenBrackets2); - for(j=0; j<namesNo-1; j++) + for(j=0; j<pFuncDesc->cParams; j++) { if(j != 0) AddToTLDataStrW(tld, wszComa); - if(namesNo-1 != 1) + if(pFuncDesc->cParams != 1) { AddToTLDataStrW(tld, wszNewLine); AddSpaces(tld, tabSize); @@ -574,8 +575,12 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent) AddToTLDataStrW(tld, wszText); AddToTLDataStrW(tld, wszAfter); AddToTLDataStrW(tld, wszSpace); - AddToTLDataStrW(tld, bstrParamNames[j+1]); - SysFreeString(bstrParamNames[j+1]); + if (j+1 < namesNo) { + AddToTLDataStrW(tld, bstrParamNames[j+1]); + SysFreeString(bstrParamNames[j+1]); + } else { + AddToTLDataStrW(tld, szRhs); + } } AddToTLDataStrW(tld, wszCloseBrackets2); AddToTLDataStrW(tld, wszSemicolon);
1
0
0
0
Aric Stewart : shell32: IShellLink::GetIDList fix.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: a0ad8f38c7dca81a218f9a489cf550357efb480a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a0ad8f38c7dca81a218f9a489…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Thu Feb 22 17:19:41 2007 +0900 shell32: IShellLink::GetIDList fix. IShellLink::GetIDList when it fails to generate a PIDL must set ppidl to NULL or some applications think it contains valid data. --- dlls/shell32/shelllink.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c index 25f0753..61885ed 100644 --- a/dlls/shell32/shelllink.c +++ b/dlls/shell32/shelllink.c @@ -1744,7 +1744,10 @@ static HRESULT WINAPI IShellLinkW_fnGetIDList(IShellLinkW * iface, LPITEMIDLIST TRACE("(%p)->(ppidl=%p)\n",This, ppidl); if (!This->pPidl) + { + *ppidl = NULL; return S_FALSE; + } *ppidl = ILClone(This->pPidl); return S_OK; }
1
0
0
0
Aric Stewart : comctl32: Implement LVM_SETUNICODEFORMAT.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: aecbb11e405f17de26bc5ab841168a27e48fdd89 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aecbb11e405f17de26bc5ab84…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Thu Feb 22 13:54:28 2007 +0900 comctl32: Implement LVM_SETUNICODEFORMAT. --- dlls/comctl32/listview.c | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index b14537a..aca548f 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -7458,7 +7458,23 @@ static HWND LISTVIEW_SetToolTips( LISTVIEW_INFO *infoPtr, HWND hwndNewToolTip) return hwndOldToolTip; } -/* LISTVIEW_SetUnicodeFormat */ +/* + * DESCRIPTION: + * sets the Unicode character format flag for the control + * PARAMETER(S): + * [I] infoPtr :valid pointer to the listview structure + * [I] fUnicode :true to switch to UNICODE false to switch to ANSI + * + * RETURN: + * Old Unicode Format + */ +static BOOL LISTVIEW_SetUnicodeFormat( LISTVIEW_INFO *infoPtr, BOOL fUnicode) +{ + BOOL rc = infoPtr->notifyFormat; + infoPtr->notifyFormat = (fUnicode)?NFR_UNICODE:NFR_ANSI; + return rc; +} + /* LISTVIEW_SetWorkAreas */ /*** @@ -9604,7 +9620,8 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case LVM_SETTOOLTIPS: return (LRESULT)LISTVIEW_SetToolTips(infoPtr, (HWND)lParam); - /* case LVM_SETUNICODEFORMAT: */ + case LVM_SETUNICODEFORMAT: + return LISTVIEW_SetUnicodeFormat(infoPtr, wParam); /* case LVM_SETVIEW: */
1
0
0
0
Andrew Talbot : serialui: Constify a variable.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: 3399c81302cfccfbac33448d680586b26831c116 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3399c81302cfccfbac33448d6…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed Feb 21 23:25:25 2007 +0000 serialui: Constify a variable. --- dlls/serialui/confdlg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/serialui/confdlg.c b/dlls/serialui/confdlg.c index d6b8f1e..f9f306b 100644 --- a/dlls/serialui/confdlg.c +++ b/dlls/serialui/confdlg.c @@ -205,7 +205,7 @@ static BOOL SERIALUI_GetConfItems(HWND hDlg, DWORD id, LPCPARAM2STR table, LPDWO * dcb.BaudRate. This code is to convert back and forth between CBR_ style * and integers. The dialog box uses integer values. */ -static DWORD SERIALUI_BaudConvertTable[] = { +static const DWORD SERIALUI_BaudConvertTable[] = { CBR_110, 110, CBR_300, 300, CBR_600, 600, CBR_1200, 1200, CBR_2400, 2400, CBR_4800, 4800, CBR_9600, 9600, CBR_14400, 14400, CBR_19200, 19200, CBR_38400, 38400, CBR_56000, 56000, CBR_57600, 57600,
1
0
0
0
Paul Vriens : wininet/tests: Add a few more tests.
by Alexandre Julliard
22 Feb '07
22 Feb '07
Module: wine Branch: master Commit: 63806a94b5091ff8a9368cd905b01c295010186c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=63806a94b5091ff8a9368cd90…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Wed Feb 21 23:13:43 2007 +0100 wininet/tests: Add a few more tests. --- dlls/wininet/tests/ftp.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 43 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/tests/ftp.c b/dlls/wininet/tests/ftp.c index c7b881c..fc86bb1 100644 --- a/dlls/wininet/tests/ftp.c +++ b/dlls/wininet/tests/ftp.c @@ -470,8 +470,23 @@ static void test_openfile(void) { BOOL bRet; HINTERNET hOpenFile2; + HANDLE hFile; + + /* We have a handle so all ftp calls should fail (TODO: Put all ftp-calls in here) */ + SetLastError(0xdeadbeef); + bRet = FtpCreateDirectoryA(hFtp, "new_directory_deadbeef"); + ok ( bRet == FALSE, "Expected FtpCreateDirectoryA to fail\n"); + todo_wine + ok ( GetLastError() == ERROR_FTP_TRANSFER_IN_PROGRESS, + "Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", GetLastError()); + + SetLastError(0xdeadbeef); + bRet = FtpDeleteFileA(hFtp, "non_existent_file_deadbeef"); + ok ( bRet == FALSE, "Expected FtpDeleteFileA to fail\n"); + todo_wine + ok ( GetLastError() == ERROR_FTP_TRANSFER_IN_PROGRESS, + "Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", GetLastError()); - /* We have a handle so all ftp calls should fail (TODO: Put more ftp-calls in here) */ SetLastError(0xdeadbeef); bRet = FtpGetFileA(hFtp, "welcome.msg", "should_be_non_existing_deadbeef", FALSE, FILE_ATTRIBUTE_NORMAL, FTP_TRANSFER_TYPE_UNKNOWN, 0); ok ( bRet == FALSE, "Expected FtpGetFileA to fail\n"); @@ -485,6 +500,33 @@ static void test_openfile(void) ok ( GetLastError() == ERROR_FTP_TRANSFER_IN_PROGRESS, "Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", GetLastError()); InternetCloseHandle(hOpenFile2); /* Just in case */ + + /* Create a temporary local file */ + SetLastError(0xdeadbeef); + hFile = CreateFileA("now_existing_local", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL); + ok ( hFile != NULL, "Error creating a local file : %d\n", GetLastError()); + CloseHandle(hFile); + SetLastError(0xdeadbeef); + bRet = FtpPutFileA(hFtp, "now_existing_local", "non_existing_remote", FTP_TRANSFER_TYPE_UNKNOWN, 0); + ok ( bRet == FALSE, "Expected FtpPutFileA to fail\n"); + todo_wine + ok ( GetLastError() == ERROR_FTP_TRANSFER_IN_PROGRESS, + "Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", GetLastError()); + DeleteFileA("now_existing_local"); + + SetLastError(0xdeadbeef); + bRet = FtpRemoveDirectoryA(hFtp, "should_be_non_existing_deadbeef_dir"); + ok ( bRet == FALSE, "Expected FtpRemoveDirectoryA to fail\n"); + todo_wine + ok ( GetLastError() == ERROR_FTP_TRANSFER_IN_PROGRESS, + "Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", GetLastError()); + + SetLastError(0xdeadbeef); + bRet = FtpRenameFileA(hFtp , "should_be_non_existing_deadbeef", "new"); + ok ( bRet == FALSE, "Expected FtpRenameFileA to fail\n"); + todo_wine + ok ( GetLastError() == ERROR_FTP_TRANSFER_IN_PROGRESS, + "Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d\n", GetLastError()); } InternetCloseHandle(hOpenFile);
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
84
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
Results per page:
10
25
50
100
200