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 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1233 discussions
Start a n
N
ew thread
Alexandre Julliard : dbghelp: Moved addr_to_linear() to stack.c.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: 7f88738fa6eb6b6b28958f9d69f44d7b2f999a3e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7f88738fa6eb6b6b28958f9d6…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 10 15:29:20 2009 +0100 dbghelp: Moved addr_to_linear() to stack.c. --- dlls/dbghelp/Makefile.in | 1 - dlls/dbghelp/dbghelp_private.h | 1 - dlls/dbghelp/memory.c | 61 ---------------------------------------- dlls/dbghelp/stack.c | 29 +++++++++++++++++++ 4 files changed, 29 insertions(+), 63 deletions(-) diff --git a/dlls/dbghelp/Makefile.in b/dlls/dbghelp/Makefile.in index a44d3c9..eaf0ae4 100644 --- a/dlls/dbghelp/Makefile.in +++ b/dlls/dbghelp/Makefile.in @@ -16,7 +16,6 @@ C_SRCS = \ elf_module.c \ image.c \ macho_module.c \ - memory.c \ minidump.c \ module.c \ msc.c \ diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h index 4faae4d..cae3c95 100644 --- a/dlls/dbghelp/dbghelp_private.h +++ b/dlls/dbghelp/dbghelp_private.h @@ -441,7 +441,6 @@ extern BOOL elf_read_wine_loader_dbg_info(struct process* pcs); extern BOOL elf_synchronize_module_list(struct process* pcs); struct elf_thunk_area; extern int elf_is_in_thunk_area(unsigned long addr, const struct elf_thunk_area* thunks); -extern DWORD WINAPI addr_to_linear(HANDLE hProcess, HANDLE hThread, ADDRESS* addr); /* macho_module.c */ #define MACHO_NO_MAP ((const void*)-1) diff --git a/dlls/dbghelp/memory.c b/dlls/dbghelp/memory.c deleted file mode 100644 index 6f64016..0000000 --- a/dlls/dbghelp/memory.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * File memory.c - managing memory - * - * Copyright (C) 2004, Eric Pouech - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#include "config.h" - -#include <assert.h> -#include "dbghelp_private.h" -#include "wine/debug.h" - -WINE_DEFAULT_DEBUG_CHANNEL(dbghelp); - -/****************************************************************** - * addr_to_linear - * - * converts an address into its linear value - */ -DWORD WINAPI addr_to_linear(HANDLE hProcess, HANDLE hThread, ADDRESS* addr) -{ - LDT_ENTRY le; - - switch (addr->Mode) - { - case AddrMode1616: - if (GetThreadSelectorEntry(hThread, addr->Segment, &le)) - return (le.HighWord.Bits.BaseHi << 24) + - (le.HighWord.Bits.BaseMid << 16) + le.BaseLow + LOWORD(addr->Offset); - break; - case AddrMode1632: - if (GetThreadSelectorEntry(hThread, addr->Segment, &le)) - return (le.HighWord.Bits.BaseHi << 24) + - (le.HighWord.Bits.BaseMid << 16) + le.BaseLow + addr->Offset; - break; - case AddrModeReal: - return (DWORD)(LOWORD(addr->Segment) << 4) + addr->Offset; - case AddrModeFlat: - return addr->Offset; - default: - FIXME("Unsupported (yet) mode (%x)\n", addr->Mode); - return 0; - } - FIXME("Failed to linearize address %04x:%08x (mode %x)\n", - addr->Segment, addr->Offset, addr->Mode); - return 0; -} diff --git a/dlls/dbghelp/stack.c b/dlls/dbghelp/stack.c index 3c66fcb..959ab64 100644 --- a/dlls/dbghelp/stack.c +++ b/dlls/dbghelp/stack.c @@ -56,6 +56,35 @@ static const char* wine_dbgstr_addr(const ADDRESS* addr) } } +static DWORD WINAPI addr_to_linear(HANDLE hProcess, HANDLE hThread, ADDRESS* addr) +{ + LDT_ENTRY le; + + switch (addr->Mode) + { + case AddrMode1616: + if (GetThreadSelectorEntry(hThread, addr->Segment, &le)) + return (le.HighWord.Bits.BaseHi << 24) + + (le.HighWord.Bits.BaseMid << 16) + le.BaseLow + LOWORD(addr->Offset); + break; + case AddrMode1632: + if (GetThreadSelectorEntry(hThread, addr->Segment, &le)) + return (le.HighWord.Bits.BaseHi << 24) + + (le.HighWord.Bits.BaseMid << 16) + le.BaseLow + addr->Offset; + break; + case AddrModeReal: + return (DWORD)(LOWORD(addr->Segment) << 4) + addr->Offset; + case AddrModeFlat: + return addr->Offset; + default: + FIXME("Unsupported (yet) mode (%x)\n", addr->Mode); + return 0; + } + FIXME("Failed to linearize address %04x:%08x (mode %x)\n", + addr->Segment, addr->Offset, addr->Mode); + return 0; +} + static BOOL CALLBACK read_mem(HANDLE hProcess, DWORD addr, void* buffer, DWORD size, LPDWORD nread) {
1
0
0
0
Alexandre Julliard : winedbg: Fix a number of 64-bit pointer truncation issues.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: ec73f0b71a249d8685f8a135dcf94028adf386f7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ec73f0b71a249d8685f8a135d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 10 15:23:45 2009 +0100 winedbg: Fix a number of 64-bit pointer truncation issues. --- programs/winedbg/be_i386.c | 70 ++++++++++++++-------------- programs/winedbg/be_x86_64.c | 100 ++++++++++++++++++++-------------------- programs/winedbg/break.c | 14 +++--- programs/winedbg/dbg.y | 2 +- programs/winedbg/debug.l | 4 +- programs/winedbg/debugger.h | 22 +++++----- programs/winedbg/gdbproxy.c | 15 +++--- programs/winedbg/info.c | 14 +++--- programs/winedbg/memory.c | 2 +- programs/winedbg/source.c | 2 +- programs/winedbg/stack.c | 12 +++--- programs/winedbg/symbol.c | 19 ++++---- programs/winedbg/tgt_active.c | 10 ++-- programs/winedbg/types.c | 4 +- programs/winedbg/winedbg.c | 12 +++--- 15 files changed, 151 insertions(+), 151 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ec73f0b71a249d8685f8a…
1
0
0
0
Paul Vriens : ddraw/tests: Fix some test failures on Vista+.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: 0f0d92bf138a7976be300221e358567e7c49ef7c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0f0d92bf138a7976be300221e…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Dec 10 13:19:48 2009 +0100 ddraw/tests: Fix some test failures on Vista+. --- dlls/ddraw/tests/dsurface.c | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c index f6f1258..ab0408b 100644 --- a/dlls/ddraw/tests/dsurface.c +++ b/dlls/ddraw/tests/dsurface.c @@ -3048,6 +3048,7 @@ static void GetDCFormatTest(void) const char *name; DDPIXELFORMAT fmt; BOOL getdc_capable; + HRESULT alt_result; } testdata[] = { { "D3DFMT_A8R8G8B8", @@ -3071,7 +3072,8 @@ static void GetDCFormatTest(void) sizeof(DDPIXELFORMAT), DDPF_RGB, 0, {32}, {0x000000ff}, {0x0000ff00}, {0x00ff0000}, {0x00000000} }, - TRUE + TRUE, + DDERR_CANTCREATEDC /* Vista+ */ }, { "D3DFMT_X8B8G8R8", @@ -3079,7 +3081,8 @@ static void GetDCFormatTest(void) sizeof(DDPIXELFORMAT), DDPF_RGB | DDPF_ALPHAPIXELS, 0, {32}, {0x000000ff}, {0x0000ff00}, {0x00ff0000}, {0xff000000} }, - TRUE + TRUE, + DDERR_CANTCREATEDC /* Vista+ */ }, { "D3DFMT_A4R4G4B4", @@ -3087,7 +3090,8 @@ static void GetDCFormatTest(void) sizeof(DDPIXELFORMAT), DDPF_RGB | DDPF_ALPHAPIXELS, 0, {16}, {0x00000f00}, {0x000000f0}, {0x0000000f}, {0x0000f000} }, - TRUE + TRUE, + DDERR_CANTCREATEDC /* Vista+ */ }, { "D3DFMT_X4R4G4B4", @@ -3095,7 +3099,8 @@ static void GetDCFormatTest(void) sizeof(DDPIXELFORMAT), DDPF_RGB, 0, {16}, {0x00000f00}, {0x000000f0}, {0x0000000f}, {0x00000000} }, - TRUE + TRUE, + DDERR_CANTCREATEDC /* Vista+ */ }, { "D3DFMT_R5G6B5", @@ -3240,7 +3245,9 @@ static void GetDCFormatTest(void) hr = IDirectDrawSurface7_GetDC(surface, &dc); if(testdata[i].getdc_capable) { - ok(SUCCEEDED(hr), "GetDC on a %s surface failed(0x%08x), expected it to work\n", + ok(SUCCEEDED(hr) || + (testdata[i].alt_result && hr == testdata[i].alt_result), + "GetDC on a %s surface failed(0x%08x), expected it to work\n", testdata[i].name, hr); } else
1
0
0
0
Erich Hoover : ws2_32: Return the full list of local IP addresses when gethostbyname() is called on the local hostname.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: 355818ae1e1222bffab7d014a952e4f70e3623d0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=355818ae1e1222bffab7d014a…
Author: Erich Hoover <ehoover(a)mines.edu> Date: Sat Dec 5 19:26:56 2009 -0700 ws2_32: Return the full list of local IP addresses when gethostbyname() is called on the local hostname. --- dlls/ws2_32/socket.c | 206 ++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 181 insertions(+), 25 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=355818ae1e1222bffab7d…
1
0
0
0
Erich Hoover : ws2_32: Separate out hostent creation from duplication.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: f9f9566c74de7cb49a3355b658879213d61b36e7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f9f9566c74de7cb49a3355b65…
Author: Erich Hoover <ehoover(a)mines.edu> Date: Sat Dec 5 19:26:33 2009 -0700 ws2_32: Separate out hostent creation from duplication. --- dlls/ws2_32/socket.c | 58 +++++++++++++++++++++++++++++++++++++------------- 1 files changed, 43 insertions(+), 15 deletions(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 02d8af5..2cc8609 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -282,6 +282,7 @@ static INT num_startup; /* reference counter */ static FARPROC blocking_hook = (FARPROC)WSA_DefaultBlockingHook; /* function prototypes */ +static struct WS_hostent *WS_create_he(char *name, int aliases, int addresses); static struct WS_hostent *WS_dup_he(const struct hostent* p_he); static struct WS_protoent *WS_dup_pe(const struct protoent* p_pe); static struct WS_servent *WS_dup_se(const struct servent* p_se); @@ -4459,33 +4460,60 @@ static int list_dup(char** l_src, char** l_to, int item_size) /* ----- hostent */ -/* duplicate hostent entry - * and handle all Win16/Win32 dependent things (struct size, ...) *correctly*. - * Ditto for protoent and servent. +/* create a hostent entry + * + * Creates the entry with enough memory for the name, aliases + * addresses, and the address pointers. Also copies the name + * and sets up all the pointers. */ -static struct WS_hostent *WS_dup_he(const struct hostent* p_he) +static struct WS_hostent *WS_create_he(char *name, int aliases, int addresses) { - char *p; struct WS_hostent *p_to; + char *p; - int size = (sizeof(*p_he) + - strlen(p_he->h_name) + 1 + - list_size(p_he->h_aliases, 0) + - list_size(p_he->h_addr_list, p_he->h_length)); + int size = (sizeof(struct WS_hostent) + + strlen(name) + 1 + + sizeof(char *)*aliases + + sizeof(char *)*addresses); if (!(p_to = check_buffer_he(size))) return NULL; - p_to->h_addrtype = p_he->h_addrtype; - p_to->h_length = p_he->h_length; + memset(p_to, 0, size); p = (char *)(p_to + 1); p_to->h_name = p; - strcpy(p, p_he->h_name); + strcpy(p, name); p += strlen(p) + 1; - p_to->h_aliases = (char **)p; - p += list_dup(p_he->h_aliases, p_to->h_aliases, 0); + if (aliases != 0) + { + p_to->h_aliases = (char **)p; + p += sizeof(char *)*aliases; + } + if (addresses != 0) + { + p_to->h_addr_list = (char **)p; + p += sizeof(char *)*addresses; + } + return p_to; +} + +/* duplicate hostent entry + * and handle all Win16/Win32 dependent things (struct size, ...) *correctly*. + * Ditto for protoent and servent. + */ +static struct WS_hostent *WS_dup_he(const struct hostent* p_he) +{ + int addresses = list_size(p_he->h_addr_list, p_he->h_length); + int aliases = list_size(p_he->h_aliases, 0); + struct WS_hostent *p_to; + + p_to = WS_create_he(p_he->h_name, aliases, addresses); + + if (!p_to) return NULL; + p_to->h_addrtype = p_he->h_addrtype; + p_to->h_length = p_he->h_length; - p_to->h_addr_list = (char **)p; + list_dup(p_he->h_aliases, p_to->h_aliases, 0); list_dup(p_he->h_addr_list, p_to->h_addr_list, p_he->h_length); return p_to; }
1
0
0
0
Paul Vriens : ole32/tests: Don't crash on Win9x/ WinMe by using more A-functions.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: 49d40d80f4a4221e1a61f5443adf18ce0b81ec4c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=49d40d80f4a4221e1a61f5443…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Dec 10 11:55:58 2009 +0100 ole32/tests: Don't crash on Win9x/WinMe by using more A-functions. --- dlls/ole32/tests/storage32.c | 72 +++++++++++++++++++++++++----------------- 1 files changed, 43 insertions(+), 29 deletions(-) diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index b658a46..2c73c74 100644 --- a/dlls/ole32/tests/storage32.c +++ b/dlls/ole32/tests/storage32.c @@ -36,7 +36,9 @@ DEFINE_GUID( test_stg_cls, 0x88888888, 0x0425, 0x0000, 0,0,0,0,0,0,0,0); static CHAR filenameA[MAX_PATH]; static WCHAR filename[MAX_PATH]; +static const char file1_nameA[] = {'c','o','p','y','t','e','s','t','A',0}; static const WCHAR file1_name[] = {'c','o','p','y','t','e','s','t','A',0}; +static const char file2_nameA[] = {'c','o','p','y','t','e','s','t','B',0}; static const WCHAR file2_name[] = {'c','o','p','y','t','e','s','t','B',0}; static const WCHAR stgA_name[] = {'S','t','o','r','a','g','e','A',0}; static const WCHAR stgB_name[] = {'S','t','o','r','a','g','e','B',0}; @@ -44,6 +46,15 @@ static const WCHAR strmA_name[] = {'S','t','r','e','a','m','A',0}; static const WCHAR strmB_name[] = {'S','t','r','e','a','m','B',0}; static const WCHAR strmC_name[] = {'S','t','r','e','a','m','C',0}; +/* Win9x and WinMe don't have lstrcmpW */ +static int strcmp_ww(LPCWSTR strw1, LPCWSTR strw2) +{ + CHAR stra1[512], stra2[512]; + WideCharToMultiByte(CP_ACP, 0, strw1, -1, stra1, sizeof(stra1), NULL, NULL); + WideCharToMultiByte(CP_ACP, 0, strw2, -1, stra2, sizeof(stra2), NULL, NULL); + return lstrcmpA(stra1, stra2); +} + static void test_hglobal_storage_stat(void) { ILockBytes *ilb = NULL; @@ -1910,6 +1921,7 @@ static void test_fmtusertypestg(void) IStorage *stg; IEnumSTATSTG *stat; HRESULT hr; + static const char fileA[] = {'f','m','t','t','e','s','t',0}; static const WCHAR fileW[] = {'f','m','t','t','e','s','t',0}; static WCHAR userTypeW[] = {'S','t','g','U','s','r','T','y','p','e',0}; static WCHAR strmNameW[] = {1,'C','o','m','p','O','b','j',0}; @@ -1933,7 +1945,7 @@ static void test_fmtusertypestg(void) DWORD got; while ((hr = IEnumSTATSTG_Next(stat, 1, &statstg, &got)) == S_OK && got == 1) { - if (lstrcmpW(statstg.pwcsName, strmNameW) == 0) + if (strcmp_ww(statstg.pwcsName, strmNameW) == 0) found = TRUE; else ok(0, "found unexpected stream or storage\n"); @@ -1956,7 +1968,7 @@ static void test_fmtusertypestg(void) DWORD got; while ((hr = IEnumSTATSTG_Next(stat, 1, &statstg, &got)) == S_OK && got == 1) { - if (lstrcmpW(statstg.pwcsName, strmNameW) == 0) + if (strcmp_ww(statstg.pwcsName, strmNameW) == 0) found = TRUE; else ok(0, "found unexpected stream or storage\n"); @@ -1966,7 +1978,7 @@ static void test_fmtusertypestg(void) } IStorage_Release(stg); - DeleteFileW( fileW ); + DeleteFileA( fileA ); } } @@ -2124,7 +2136,7 @@ static void test_copyto(void) hr = IStream_Read(strm_tmp, buf, sizeof(buf), NULL); ok(hr == S_OK, "Read failed: 0x%08x\n", hr); if(SUCCEEDED(hr)) - ok(lstrcmpW(buf, strmA_name) == 0, + ok(strcmp_ww(buf, strmA_name) == 0, "Expected %s to be read, got %s\n", wine_dbgstr_w(strmA_name), wine_dbgstr_w(buf)); IStream_Release(strm_tmp); @@ -2147,7 +2159,7 @@ static void test_copyto(void) hr = IStream_Read(strm_tmp, buf, sizeof(buf), NULL); ok(hr == S_OK, "Read failed: 0x%08x\n", hr); if(SUCCEEDED(hr)) - ok(lstrcmpW(buf, strmB_name) == 0, + ok(strcmp_ww(buf, strmB_name) == 0, "Expected %s to be read, got %s\n", wine_dbgstr_w(strmB_name), wine_dbgstr_w(buf)); IStream_Release(strm_tmp); @@ -2165,7 +2177,7 @@ static void test_copyto(void) hr = IStream_Read(strm_tmp, buf, sizeof(buf), NULL); ok(hr == S_OK, "Read failed: 0x%08x\n", hr); if(SUCCEEDED(hr)) - ok(lstrcmpW(buf, strmC_name) == 0, + ok(strcmp_ww(buf, strmC_name) == 0, "Expected %s to be read, got %s\n", wine_dbgstr_w(strmC_name), wine_dbgstr_w(buf)); IStream_Release(strm_tmp); @@ -2177,8 +2189,8 @@ cleanup: if(file2) IStorage_Release(file2); - DeleteFileW(file1_name); - DeleteFileW(file2_name); + DeleteFileA(file1_nameA); + DeleteFileA(file2_nameA); } static void test_copyto_snbexclusions(void) @@ -2239,7 +2251,7 @@ static void test_copyto_snbexclusions(void) hr = IStream_Read(strm_tmp, buf, sizeof(buf), NULL); ok(hr == S_OK, "Read failed: 0x%08x\n", hr); if(SUCCEEDED(hr)) - ok(lstrcmpW(buf, strmB_name) == 0, + ok(strcmp_ww(buf, strmB_name) == 0, "Expected %s to be read, got %s\n", wine_dbgstr_w(strmB_name), wine_dbgstr_w(buf)); IStream_Release(strm_tmp); @@ -2260,8 +2272,8 @@ cleanup: if(file2) IStorage_Release(file2); - DeleteFileW(file1_name); - DeleteFileW(file2_name); + DeleteFileA(file1_nameA); + DeleteFileA(file2_nameA); } static void test_copyto_iidexclusions_storage(void) @@ -2327,7 +2339,7 @@ static void test_copyto_iidexclusions_storage(void) hr = IStream_Read(strm_tmp, buf, sizeof(buf), NULL); ok(hr == S_OK, "Read failed: 0x%08x\n", hr); if(SUCCEEDED(hr)) - ok(lstrcmpW(buf, strmC_name) == 0, + ok(strcmp_ww(buf, strmC_name) == 0, "Expected %s to be read, got %s\n", wine_dbgstr_w(strmC_name), wine_dbgstr_w(buf)); IStream_Release(strm_tmp); @@ -2339,8 +2351,8 @@ cleanup: if(file2) IStorage_Release(file2); - DeleteFileW(file1_name); - DeleteFileW(file2_name); + DeleteFileA(file1_nameA); + DeleteFileA(file2_nameA); } static void test_copyto_iidexclusions_stream(void) @@ -2412,8 +2424,8 @@ cleanup: if(file2) IStorage_Release(file2); - DeleteFileW(file1_name); - DeleteFileW(file2_name); + DeleteFileA(file1_nameA); + DeleteFileA(file2_nameA); } static void test_rename(void) @@ -2490,10 +2502,11 @@ static void test_toplevel_stat(void) IStorage *stg = NULL; HRESULT r; STATSTG stat; - WCHAR prev_dir[MAX_PATH]; - WCHAR temp[MAX_PATH]; - WCHAR full_path[MAX_PATH]; - LPWSTR rel_path; + char prev_dir[MAX_PATH]; + char temp[MAX_PATH]; + char full_path[MAX_PATH]; + LPSTR rel_pathA; + WCHAR rel_path[MAX_PATH]; DeleteFileA(filenameA); @@ -2502,7 +2515,7 @@ static void test_toplevel_stat(void) ok(r==S_OK, "StgCreateDocfile failed\n"); r = IStorage_Stat( stg, &stat, STATFLAG_DEFAULT ); - ok(!lstrcmpW(stat.pwcsName, filename), "expected %s, got %s\n", + ok(!strcmp_ww(stat.pwcsName, filename), "expected %s, got %s\n", wine_dbgstr_w(filename), wine_dbgstr_w(stat.pwcsName)); CoTaskMemFree(stat.pwcsName); @@ -2512,7 +2525,7 @@ static void test_toplevel_stat(void) ok(r==S_OK, "StgOpenStorage failed with error 0x%08x\n", r); r = IStorage_Stat( stg, &stat, STATFLAG_DEFAULT ); - ok(!lstrcmpW(stat.pwcsName, filename), "expected %s, got %s\n", + ok(!strcmp_ww(stat.pwcsName, filename), "expected %s, got %s\n", wine_dbgstr_w(filename), wine_dbgstr_w(stat.pwcsName)); CoTaskMemFree(stat.pwcsName); @@ -2521,20 +2534,21 @@ static void test_toplevel_stat(void) DeleteFileA(filenameA); /* Stat always returns the full path, even for files opened with a relative path. */ - GetCurrentDirectoryW(MAX_PATH, prev_dir); + GetCurrentDirectoryA(MAX_PATH, prev_dir); - GetTempPathW(MAX_PATH, temp); + GetTempPathA(MAX_PATH, temp); - SetCurrentDirectoryW(temp); + SetCurrentDirectoryA(temp); - GetFullPathNameW(filename, MAX_PATH, full_path, &rel_path); + GetFullPathNameA(filenameA, MAX_PATH, full_path, &rel_pathA); + MultiByteToWideChar(CP_ACP, 0, rel_pathA, -1, rel_path, MAX_PATH); r = StgCreateDocfile( rel_path, STGM_CREATE | STGM_SHARE_EXCLUSIVE | STGM_READWRITE |STGM_TRANSACTED, 0, &stg); ok(r==S_OK, "StgCreateDocfile failed\n"); r = IStorage_Stat( stg, &stat, STATFLAG_DEFAULT ); - ok(!lstrcmpW(stat.pwcsName, filename), "expected %s, got %s\n", + ok(!strcmp_ww(stat.pwcsName, filename), "expected %s, got %s\n", wine_dbgstr_w(filename), wine_dbgstr_w(stat.pwcsName)); CoTaskMemFree(stat.pwcsName); @@ -2544,13 +2558,13 @@ static void test_toplevel_stat(void) ok(r==S_OK, "StgOpenStorage failed with error 0x%08x\n", r); r = IStorage_Stat( stg, &stat, STATFLAG_DEFAULT ); - ok(!lstrcmpW(stat.pwcsName, filename), "expected %s, got %s\n", + ok(!strcmp_ww(stat.pwcsName, filename), "expected %s, got %s\n", wine_dbgstr_w(filename), wine_dbgstr_w(stat.pwcsName)); CoTaskMemFree(stat.pwcsName); IStorage_Release( stg ); - SetCurrentDirectoryW(prev_dir); + SetCurrentDirectoryA(prev_dir); DeleteFileA(filenameA); }
1
0
0
0
Paul Vriens : imagehlp/tests: Run tests again on Win95.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: f976907d4f07e9777a6f0ffae348c20f93a0d4a9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f976907d4f07e9777a6f0ffae…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Dec 10 11:41:48 2009 +0100 imagehlp/tests: Run tests again on Win95. --- dlls/imagehlp/tests/integrity.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/imagehlp/tests/integrity.c b/dlls/imagehlp/tests/integrity.c index df77dab..a551d1f 100644 --- a/dlls/imagehlp/tests/integrity.c +++ b/dlls/imagehlp/tests/integrity.c @@ -121,12 +121,18 @@ static BOOL copy_dll_file(void) static DWORD get_file_size(void) { - WIN32_FILE_ATTRIBUTE_DATA info; + HANDLE file; + DWORD filesize = 0; - if (GetFileAttributesEx(test_dll_path, GetFileExInfoStandard, &info)) + file = CreateFileA(test_dll_path, GENERIC_READ, FILE_SHARE_READ, NULL, + OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if (file == INVALID_HANDLE_VALUE) return 0; - return info.nFileSizeLow; + filesize = GetFileSize(file, NULL); + CloseHandle(file); + + return filesize; } static void test_add_certificate(char *cert_data, int len)
1
0
0
0
Wolfram Sang : ntoskrnl: Add IoAllocateErrorLogEntry stub.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: 7790280c5b6277347cc2873602c4f46aea872ee7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7790280c5b6277347cc287360…
Author: Wolfram Sang <wolfram(a)the-dreams.de> Date: Wed Dec 9 19:22:14 2009 +0100 ntoskrnl: Add IoAllocateErrorLogEntry stub. --- dlls/ntoskrnl.exe/ntoskrnl.c | 10 ++++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- include/ddk/wdm.h | 1 + 3 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 06971ad..63d6fc9 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -374,6 +374,16 @@ void WINAPI IoFreeIrp( IRP *irp ) /*********************************************************************** + * IoAllocateErrorLogEntry (NTOSKRNL.EXE.@) + */ +PVOID WINAPI IoAllocateErrorLogEntry( PVOID IoObject, UCHAR EntrySize ) +{ + FIXME( "stub: %p, %u\n", IoObject, EntrySize ); + return NULL; +} + + +/*********************************************************************** * IoAllocateMdl (NTOSKRNL.EXE.@) */ PMDL WINAPI IoAllocateMdl( PVOID VirtualAddress, ULONG Length, BOOLEAN SecondaryBuffer, BOOLEAN ChargeQuota, PIRP Irp ) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index b85fcb9..f6402af 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -310,7 +310,7 @@ @ stub IoAllocateAdapterChannel @ stub IoAllocateController @ stdcall IoAllocateDriverObjectExtension(ptr ptr long ptr) -@ stub IoAllocateErrorLogEntry +@ stdcall IoAllocateErrorLogEntry(ptr long) @ stdcall IoAllocateIrp(long long) @ stdcall IoAllocateMdl(ptr long long long ptr) @ stdcall IoAllocateWorkItem(ptr) diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index df0ad5d..3bc7238 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -1040,6 +1040,7 @@ void WINAPI ExFreePool(PVOID); void WINAPI ExFreePoolWithTag(PVOID,ULONG); NTSTATUS WINAPI IoAllocateDriverObjectExtension(PDRIVER_OBJECT,PVOID,ULONG,PVOID*); +PVOID WINAPI IoAllocateErrorLogEntry(PVOID,UCHAR); PIRP WINAPI IoAllocateIrp(CCHAR,BOOLEAN); NTSTATUS WINAPI IoCreateDevice(DRIVER_OBJECT*,ULONG,UNICODE_STRING*,DEVICE_TYPE,ULONG,BOOLEAN,DEVICE_OBJECT**); NTSTATUS WINAPI IoCreateDriver(UNICODE_STRING*,PDRIVER_INITIALIZE);
1
0
0
0
Ken Thomases : kernel32: Consolidate some related code closer together.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: 18d9632914cc51005d52cceb7615fedfdfb66aaf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=18d9632914cc51005d52cceb7…
Author: Ken Thomases <ken(a)codeweavers.com> Date: Wed Dec 9 15:03:18 2009 -0600 kernel32: Consolidate some related code closer together. --- dlls/kernel32/locale.c | 46 ++++++++++++++++++++++------------------------ 1 files changed, 22 insertions(+), 24 deletions(-) diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index 0b466e0..834d5b9 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -2926,8 +2926,6 @@ void LOCALE_Init(void) #ifdef __APPLE__ /* MacOS doesn't set the locale environment variables so we have to do it ourselves */ - CFArrayRef preferred_locales, all_locales; - CFStringRef user_language_string_ref = NULL; char user_locale[50]; CFLocaleRef user_locale_ref = CFLocaleCopyCurrent(); @@ -2953,15 +2951,6 @@ void LOCALE_Init(void) unix_cp = CP_UTF8; /* default to utf-8 even if we don't get a valid locale */ setenv( "LANG", user_locale, 0 ); TRACE( "setting locale to '%s'\n", user_locale ); - - /* We still want to set the retrieve the preferred language as chosen in - System Preferences.app, because it can differ from CFLocaleCopyCurrent(). - */ - all_locales = CFLocaleCopyAvailableLocaleIdentifiers(); - preferred_locales = CFBundleCopyLocalizationsForPreferences( all_locales, NULL ); - if (preferred_locales && CFArrayGetCount( preferred_locales )) - user_language_string_ref = CFArrayGetValueAtIndex( preferred_locales, 0 ); - CFRelease( all_locales ); #endif /* __APPLE__ */ setlocale( LC_ALL, "" ); @@ -2970,19 +2959,28 @@ void LOCALE_Init(void) if (!lcid_LC_MESSAGES) lcid_LC_MESSAGES = lcid_LC_CTYPE; #ifdef __APPLE__ - /* Override lcid_LC_MESSAGES with user_language if LC_MESSAGES is set to default */ - if (user_language_string_ref && !getenv("LC_ALL") && !getenv("LC_MESSAGES")) - { - struct locale_name locale_name; - WCHAR buffer[128]; - CFStringGetCString( user_language_string_ref, user_locale, sizeof(user_locale), kCFStringEncodingUTF8 ); - strcpynAtoW( buffer, user_locale, sizeof(buffer)/sizeof(WCHAR) ); - parse_locale_name( buffer, &locale_name ); - lcid_LC_MESSAGES = locale_name.lcid; - TRACE( "setting lcid_LC_MESSAGES to '%s'\n", user_locale ); - } - if (preferred_locales) - CFRelease( preferred_locales ); + /* Override lcid_LC_MESSAGES with user's preferred language if LC_MESSAGES is set to default */ + if (!getenv("LC_ALL") && !getenv("LC_MESSAGES")) + { + /* Retrieve the preferred language as chosen in System Preferences. */ + CFArrayRef all_locales = CFLocaleCopyAvailableLocaleIdentifiers(); + CFArrayRef preferred_locales = CFBundleCopyLocalizationsForPreferences( all_locales, NULL ); + CFStringRef user_language_string_ref; + if (preferred_locales && CFArrayGetCount( preferred_locales ) && + (user_language_string_ref = CFArrayGetValueAtIndex( preferred_locales, 0 ))) + { + struct locale_name locale_name; + WCHAR buffer[128]; + CFStringGetCString( user_language_string_ref, user_locale, sizeof(user_locale), kCFStringEncodingUTF8 ); + strcpynAtoW( buffer, user_locale, sizeof(buffer)/sizeof(WCHAR) ); + parse_locale_name( buffer, &locale_name ); + lcid_LC_MESSAGES = locale_name.lcid; + TRACE( "setting lcid_LC_MESSAGES to '%s'\n", user_locale ); + } + CFRelease( all_locales ); + if (preferred_locales) + CFRelease( preferred_locales ); + } #endif NtSetDefaultUILanguage( LANGIDFROMLCID(lcid_LC_MESSAGES) );
1
0
0
0
Ken Thomases : kernel32: Mac lang. pref. overrides LANG, but not LC_ALL or LC_MESSAGES.
by Alexandre Julliard
10 Dec '09
10 Dec '09
Module: wine Branch: master Commit: b58cd975ba1322850a35f6aebc76adab348f6df8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b58cd975ba1322850a35f6aeb…
Author: Ken Thomases <ken(a)codeweavers.com> Date: Wed Dec 9 15:03:07 2009 -0600 kernel32: Mac lang. pref. overrides LANG, but not LC_ALL or LC_MESSAGES. --- dlls/kernel32/locale.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index ac33e78..0b466e0 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -2971,7 +2971,7 @@ void LOCALE_Init(void) #ifdef __APPLE__ /* Override lcid_LC_MESSAGES with user_language if LC_MESSAGES is set to default */ - if (lcid_LC_MESSAGES == lcid_LC_CTYPE && user_language_string_ref) + if (user_language_string_ref && !getenv("LC_ALL") && !getenv("LC_MESSAGES")) { struct locale_name locale_name; WCHAR buffer[128];
1
0
0
0
← Newer
1
...
74
75
76
77
78
79
80
...
124
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Results per page:
10
25
50
100
200