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
July 2006
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
5 participants
857 discussions
Start a n
N
ew thread
Robert Shearman : include: Add NI_* defines and add a WS(socklen_t) type.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 264503d40daa297eac2948b1a392ba4b86215d00 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=264503d40daa297eac2948b…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Thu Jul 13 13:06:30 2006 +0100 include: Add NI_* defines and add a WS(socklen_t) type. --- dlls/ws2_32/socket.c | 2 +- include/ws2tcpip.h | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 8887ae8..4c17f21 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -3238,7 +3238,7 @@ int WINAPI GetAddrInfoW(LPCWSTR nodename return EAI_FAIL; } -int WINAPI WS_getnameinfo(const SOCKADDR *sa, socklen_t salen, PCHAR host, +int WINAPI WS_getnameinfo(const SOCKADDR *sa, WS_socklen_t salen, PCHAR host, DWORD hostlen, PCHAR serv, DWORD servlen, INT flags) { #if HAVE_GETNAMEINFO diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h index dcdcd4e..8d3c837 100644 --- a/include/ws2tcpip.h +++ b/include/ws2tcpip.h @@ -53,6 +53,8 @@ typedef struct WS(addrinfoW) struct WS(addrinfoW)* ai_next; } ADDRINFOW, *PADDRINFOW; +typedef int WS(socklen_t); + typedef ADDRINFOA ADDRINFO, *LPADDRINFO; /* @@ -202,6 +204,21 @@ # define WS_EAI_SERVICE WSATYPE_NOT_FOUN # define WS_EAI_SOCKTYPE WSAESOCKTNOSUPPORT #endif +/* Possible Windows flags for getnameinfo() */ +#ifndef USE_WS_PREFIX +# define NI_NOFQDN 0x01 +# define NI_NUMERICHOST 0x02 +# define NI_NAMEREQD 0x04 +# define NI_NUMERICSERV 0x08 +# define NI_DGRAM 0x10 +#else +# define WS_NI_NOFQDN 0x01 +# define WS_NI_NUMERICHOST 0x02 +# define WS_NI_NAMEREQD 0x04 +# define WS_NI_NUMERICSERV 0x08 +# define WS_NI_DGRAM 0x10 +#endif + #ifdef __cplusplus extern "C" { @@ -215,9 +232,9 @@ int WINAPI WS(getaddrinfo)(const char*, #define GetAddrInfoA WS(getaddrinfo) int WINAPI GetAddrInfoW(PCWSTR,PCWSTR,const ADDRINFOW*,PADDRINFOW*); #define GetAddrInfo WINELIB_NAME_AW(GetAddrInfo) -int WINAPI WS(getnameinfo)(const SOCKADDR*,socklen_t,PCHAR,DWORD,PCHAR,DWORD,INT); +int WINAPI WS(getnameinfo)(const SOCKADDR*,WS(socklen_t),PCHAR,DWORD,PCHAR,DWORD,INT); #define GetNameInfoA WS(getnameinfo) -INT WINAPI GetNameInfoW(const SOCKADDR*,socklen_t,PWCHAR,DWORD,PWCHAR,DWORD,INT); +INT WINAPI GetNameInfoW(const SOCKADDR*,WS(socklen_t),PWCHAR,DWORD,PWCHAR,DWORD,INT); #define GetNameInfo WINELIB_NAME_AW(GetNameInfo) /*
1
0
0
0
Robert Shearman : rpcrt4: Add a stub for I_RpcMapWin32Status.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 2538490d0bb68c2e0c0b2c67d7336b679edb53b0 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=2538490d0bb68c2e0c0b2c6…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Thu Jul 13 13:06:44 2006 +0100 rpcrt4: Add a stub for I_RpcMapWin32Status. --- dlls/rpcrt4/rpcrt4.spec | 2 +- dlls/rpcrt4/rpcrt4_main.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec index 5141165..ca5f45f 100644 --- a/dlls/rpcrt4/rpcrt4.spec +++ b/dlls/rpcrt4/rpcrt4.spec @@ -59,7 +59,7 @@ # 9x version of I_RpcBindingSetAsync has @ stub I_RpcIfInqTransferSyntaxes @ stub I_RpcLaunchDatagramReceiveThread # win9x @ stub I_RpcLogEvent -@ stub I_RpcMapWin32Status +@ stdcall I_RpcMapWin32Status(long) @ stub I_RpcMonitorAssociation @ stub I_RpcNegotiateTransferSyntax # wxp @ stub I_RpcNsBindingSetEntryName diff --git a/dlls/rpcrt4/rpcrt4_main.c b/dlls/rpcrt4/rpcrt4_main.c index 092354a..65b86f4 100644 --- a/dlls/rpcrt4/rpcrt4_main.c +++ b/dlls/rpcrt4/rpcrt4_main.c @@ -816,3 +816,12 @@ void WINAPI I_RpcFree(void *Object) { HeapFree(GetProcessHeap(), 0, Object); } + +/****************************************************************************** + * I_RpcMapWin32Status (rpcrt4.@) + */ +DWORD WINAPI I_RpcMapWin32Status(RPC_STATUS status) +{ + FIXME("(%ld): stub\n", status); + return 0; +}
1
0
0
0
Robert Shearman : dbghelp: Fix the finding of PDB DS-type files.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 7084f14073467f2a5b51a66dec9677b2744dd07e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7084f14073467f2a5b51a66…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Thu Jul 13 13:06:15 2006 +0100 dbghelp: Fix the finding of PDB DS-type files. --- dlls/dbghelp/path.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/dbghelp/path.c b/dlls/dbghelp/path.c index bedc0f0..f297011 100644 --- a/dlls/dbghelp/path.c +++ b/dlls/dbghelp/path.c @@ -309,7 +309,7 @@ static BOOL CALLBACK sffip_cb(LPCSTR buf WARN("Found %s, but wrong PDB version\n", buffer); return FALSE; } - if (!(memcmp(&pdb_lookup.u.ds.guid, (GUID*)s->id, sizeof(GUID)))) + if (memcmp(&pdb_lookup.u.ds.guid, (GUID*)s->id, sizeof(GUID))) { WARN("Found %s, but wrong GUID: %s %s\n", buffer, debugstr_guid(&pdb_lookup.u.ds.guid),
1
0
0
0
Alexandre Julliard : shell32: Avoid using macros that cause gcc warnings.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 669780c24f85a3ea135d9b159395516400d6f8ef URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=669780c24f85a3ea135d9b1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 13 15:50:20 2006 +0200 shell32: Avoid using macros that cause gcc warnings. --- dlls/shell32/brsfolder.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c index 2ef6b76..2d73d9b 100644 --- a/dlls/shell32/brsfolder.c +++ b/dlls/shell32/brsfolder.c @@ -588,7 +588,7 @@ static BOOL BrsFolder_OnSetExpanded(brow while (item.hItem && !_ILIsEmpty(pidlCurrent)) { LPTV_ITEMDATA pItemData; - TreeView_GetItemW(info->hwndTreeView, &item); + SendMessageW(info->hwndTreeView, TVM_GETITEMW, 0, (LPARAM)&item); pItemData = (LPTV_ITEMDATA)item.lParam; if (_ILIsEqualSimple(pItemData->lpi, pidlCurrent)) { @@ -596,7 +596,7 @@ static BOOL BrsFolder_OnSetExpanded(brow if (!_ILIsEmpty(pidlCurrent)) { /* Only expand current node and move on to it's first child, * if we didn't already reach the last SHITEMID */ - TreeView_Expand(info->hwndTreeView, item.hItem, TVE_EXPAND); + SendMessageW(info->hwndTreeView, TVM_EXPAND, TVE_EXPAND, (LPARAM)item.hItem); item.hItem = TreeView_GetChild(info->hwndTreeView, item.hItem); } } else { @@ -623,7 +623,7 @@ static BOOL BrsFolder_OnSetSelectionW(br bResult = BrsFolder_OnSetExpanded(info, selection, is_str, &hItem); if (bResult) - TreeView_Select(info->hwndTreeView, hItem, TVGN_CARET); + SendMessageW(info->hwndTreeView, TVM_SELECTITEM, TVGN_CARET, (LPARAM)hItem ); return bResult; }
1
0
0
0
Alexandre Julliard : ntdll: Moved the calling of the process entry point to LdrInitializeThunk.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 50fca716fddf5af03b4c91ae5e950daff5fbdf2a URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=50fca716fddf5af03b4c91a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 13 14:58:04 2006 +0200 ntdll: Moved the calling of the process entry point to LdrInitializeThunk. --- dlls/kernel/process.c | 17 ----------------- dlls/ntdll/loader.c | 19 +++++++++++++++---- include/winternl.h | 2 +- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c index 389899c..911cf51 100644 --- a/dlls/kernel/process.c +++ b/dlls/kernel/process.c @@ -54,7 +54,6 @@ #endif WINE_DEFAULT_DEBUG_CHANNEL(process); WINE_DECLARE_DEBUG_CHANNEL(file); -WINE_DECLARE_DEBUG_CHANNEL(relay); typedef struct { @@ -794,23 +793,7 @@ static void start_process( void *arg ) { __TRY { - PEB *peb = NtCurrentTeb()->Peb; - IMAGE_NT_HEADERS *nt; - LPTHREAD_START_ROUTINE entry; - LdrInitializeThunk( 0, 0, 0, 0 ); - - nt = RtlImageNtHeader( peb->ImageBaseAddress ); - entry = (LPTHREAD_START_ROUTINE)((char *)peb->ImageBaseAddress + - nt->OptionalHeader.AddressOfEntryPoint); - - if (TRACE_ON(relay)) - DPRINTF( "%04lx:Starting process %s (entryproc=%p)\n", GetCurrentThreadId(), - debugstr_w(peb->ProcessParameters->ImagePathName.Buffer), entry ); - - SetLastError( 0 ); /* clear error code */ - if (peb->BeingDebugged) DbgBreakPoint(); - ExitProcess( entry( peb ) ); } __EXCEPT(UnhandledExceptionFilter) { diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index f5022e1..0ca8f2a 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -2094,6 +2094,8 @@ void WINAPI LdrInitializeThunk( ULONG un LPCWSTR load_path; PEB *peb = NtCurrentTeb()->Peb; IMAGE_NT_HEADERS *nt = RtlImageNtHeader( peb->ImageBaseAddress ); + LPTHREAD_START_ROUTINE entry = (LPTHREAD_START_ROUTINE)((char *)peb->ImageBaseAddress + + nt->OptionalHeader.AddressOfEntryPoint); if (main_exe_file) NtClose( main_exe_file ); /* at this point the main module is created */ @@ -2125,9 +2127,9 @@ void WINAPI LdrInitializeThunk( ULONG un /* Signal the parent process to continue */ SERVER_START_REQ( init_process_done ) { - req->module = peb->ImageBaseAddress; - req->entry = (char *)peb->ImageBaseAddress + nt->OptionalHeader.AddressOfEntryPoint; - req->gui = (nt->OptionalHeader.Subsystem != IMAGE_SUBSYSTEM_WINDOWS_CUI); + req->module = peb->ImageBaseAddress; + req->entry = entry; + req->gui = (nt->OptionalHeader.Subsystem != IMAGE_SUBSYSTEM_WINDOWS_CUI); status = wine_server_call( req ); } SERVER_END_REQ; @@ -2151,7 +2153,16 @@ void WINAPI LdrInitializeThunk( ULONG un RtlLeaveCriticalSection( &loader_section ); if (nt->FileHeader.Characteristics & IMAGE_FILE_LARGE_ADDRESS_AWARE) VIRTUAL_UseLargeAddressSpace(); - return; + + if (TRACE_ON(relay)) + DPRINTF( "%04lx:Starting process %s (entryproc=%p)\n", GetCurrentThreadId(), + debugstr_w(peb->ProcessParameters->ImagePathName.Buffer), entry ); + + RtlSetLastWin32ErrorAndNtStatusFromNtStatus( STATUS_SUCCESS ); /* clear error code */ + if (peb->BeingDebugged) DbgBreakPoint(); + status = entry( peb ); + LdrShutdownProcess(); + NtTerminateProcess( GetCurrentProcess(), status ); error: ERR( "Main exe initialization for %s failed, status %lx\n", diff --git a/include/winternl.h b/include/winternl.h index 5177348..c8aa3ed 100644 --- a/include/winternl.h +++ b/include/winternl.h @@ -1726,7 +1726,7 @@ NTSTATUS WINAPI LdrFindResourceDirector NTSTATUS WINAPI LdrFindResource_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DATA_ENTRY**); NTSTATUS WINAPI LdrGetDllHandle(ULONG, ULONG, const UNICODE_STRING*, HMODULE*); NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE, const ANSI_STRING*, ULONG, void**); -void WINAPI LdrInitializeThunk(ULONG,ULONG,ULONG,ULONG); +void DECLSPEC_NORETURN WINAPI LdrInitializeThunk(ULONG,ULONG,ULONG,ULONG); NTSTATUS WINAPI LdrLoadDll(LPCWSTR, DWORD, const UNICODE_STRING*, HMODULE*); void WINAPI LdrShutdownProcess(void); void WINAPI LdrShutdownThread(void);
1
0
0
0
Alexandre Julliard : kernel32: Moved initialisation of the console handles to DllMain.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 38440f561d4dc8a80855460bacea313a895da19b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=38440f561d4dc8a80855460…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 13 14:04:40 2006 +0200 kernel32: Moved initialisation of the console handles to DllMain. --- dlls/kernel/kernel_main.c | 22 +++++++++++++++++++++- dlls/kernel/process.c | 19 ------------------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/dlls/kernel/kernel_main.c b/dlls/kernel/kernel_main.c index dea83b2..f6eeba9 100644 --- a/dlls/kernel/kernel_main.c +++ b/dlls/kernel/kernel_main.c @@ -97,6 +97,7 @@ static void thread_detach(void) static BOOL process_attach(void) { SYSTEM_INFO si; + RTL_USER_PROCESS_PARAMETERS *params = NtCurrentTeb()->Peb->ProcessParameters; /* FIXME: should probably be done in ntdll */ GetSystemInfo( &si ); @@ -108,6 +109,25 @@ static BOOL process_attach(void) /* Setup computer name */ COMPUTERNAME_Init(); + /* convert value from server: + * + 0 => INVALID_HANDLE_VALUE + * + console handle needs to be mapped + */ + if (!params->hStdInput) + params->hStdInput = INVALID_HANDLE_VALUE; + else if (VerifyConsoleIoHandle(console_handle_map(params->hStdInput))) + params->hStdInput = console_handle_map(params->hStdInput); + + if (!params->hStdOutput) + params->hStdOutput = INVALID_HANDLE_VALUE; + else if (VerifyConsoleIoHandle(console_handle_map(params->hStdOutput))) + params->hStdOutput = console_handle_map(params->hStdOutput); + + if (!params->hStdError) + params->hStdError = INVALID_HANDLE_VALUE; + else if (VerifyConsoleIoHandle(console_handle_map(params->hStdError))) + params->hStdError = console_handle_map(params->hStdError); + /* copy process information from ntdll */ ENV_CopyStartupInformation(); @@ -127,7 +147,7 @@ #endif /* finish the process initialisation for console bits, if needed */ __wine_set_signal_handler(SIGINT, CONSOLE_HandleCtrlC); - if (NtCurrentTeb()->Peb->ProcessParameters->ConsoleHandle == (HANDLE)1) /* FIXME */ + if (params->ConsoleHandle == (HANDLE)1) /* FIXME */ { HMODULE mod = GetModuleHandleA(0); if (RtlImageNtHeader(mod)->OptionalHeader.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI) diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c index 4a9d01e..389899c 100644 --- a/dlls/kernel/process.c +++ b/dlls/kernel/process.c @@ -743,25 +743,6 @@ static BOOL process_init(void) init_windows_dirs(); init_current_directory( ¶ms->CurrentDirectory ); - /* convert value from server: - * + 0 => INVALID_HANDLE_VALUE - * + console handle needs to be mapped - */ - if (!params->hStdInput) - params->hStdInput = INVALID_HANDLE_VALUE; - else if (VerifyConsoleIoHandle(console_handle_map(params->hStdInput))) - params->hStdInput = console_handle_map(params->hStdInput); - - if (!params->hStdOutput) - params->hStdOutput = INVALID_HANDLE_VALUE; - else if (VerifyConsoleIoHandle(console_handle_map(params->hStdOutput))) - params->hStdOutput = console_handle_map(params->hStdOutput); - - if (!params->hStdError) - params->hStdError = INVALID_HANDLE_VALUE; - else if (VerifyConsoleIoHandle(console_handle_map(params->hStdError))) - params->hStdError = console_handle_map(params->hStdError); - return TRUE; }
1
0
0
0
James Hawkins : shlwapi: Add tests for PathCommonPrefixA.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: c70bf5aaab747ca8966536d64c0047f1959001d6 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c70bf5aaab747ca8966536d…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Jul 12 17:19:55 2006 -0700 shlwapi: Add tests for PathCommonPrefixA. --- dlls/shlwapi/tests/path.c | 212 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 212 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=c70bf5aaab747ca8966…
1
0
0
0
James Hawkins : shlwapi: Add tests for PathBuildRootA.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: a6f4ede2557d83c2f659b8f320e2b53658ac8448 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a6f4ede2557d83c2f659b8f…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Jul 12 17:18:37 2006 -0700 shlwapi: Add tests for PathBuildRootA. --- dlls/shlwapi/tests/path.c | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/dlls/shlwapi/tests/path.c b/dlls/shlwapi/tests/path.c index 183c936..0f9a2cf 100644 --- a/dlls/shlwapi/tests/path.c +++ b/dlls/shlwapi/tests/path.c @@ -1485,6 +1485,60 @@ static void test_PathFindExtensionA(void ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n", GetLastError()); } +static void test_PathBuildRootA(void) +{ + LPSTR root; + char path[10]; + char root_expected[26][4]; + char drive; + int j; + + /* set up the expected paths */ + for (drive = 'A'; drive <= 'Z'; drive++) + sprintf(root_expected[drive - 'A'], "%c:\\", drive); + + /* test the expected values */ + for (j = 0; j < 26; j++) + { + SetLastError(0xdeadbeef); + lstrcpy(path, "aaaaaaaaa"); + root = PathBuildRootA(path, j); + ok(root == path, "Expected root == path, got %p\n", root); + ok(!lstrcmp(root, root_expected[j]), "Expected %s, got %s\n", root_expected[j], root); + ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n", GetLastError()); + } + + /* test a negative drive number */ + SetLastError(0xdeadbeef); + lstrcpy(path, "aaaaaaaaa"); + root = PathBuildRootA(path, -1); + ok(root == path, "Expected root == path, got %p\n", root); + ok(!lstrcmp(path, "aaaaaaaaa"), "Expected aaaaaaaaa, got %s\n", path); + ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n", GetLastError()); + + /* test a drive number greater than 25 */ + SetLastError(0xdeadbeef); + lstrcpy(path, "aaaaaaaaa"); + root = PathBuildRootA(path, 26); + ok(root == path, "Expected root == path, got %p\n", root); + ok(!lstrcmp(path, "aaaaaaaaa"), "Expected aaaaaaaaa, got %s\n", path); + ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n", GetLastError()); + + /* length of path is less than 4 */ + SetLastError(0xdeadbeef); + lstrcpy(path, "aa"); + root = PathBuildRootA(path, 0); + ok(root == path, "Expected root == path, got %p\n", root); + ok(!lstrcmp(path, "A:\\"), "Expected A:\\, got %s\n", path); + ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n", GetLastError()); + + /* path is NULL */ + SetLastError(0xdeadbeef); + root = PathBuildRootA(NULL, 0); + ok(root == NULL, "Expected root == NULL, got %p\n", root); + ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n", GetLastError()); +} + START_TEST(path) { hShlwapi = LoadLibraryA("shlwapi.dll"); @@ -1527,4 +1581,5 @@ START_TEST(path) test_PathAppendA(); test_PathCanonicalizeA(); test_PathFindExtensionA(); + test_PathBuildRootA(); }
1
0
0
0
James Hawkins : msi: Update the files target paths as well, because a parent directory might have been changed.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 094915ae2c12f1b3122462890bcda20b8cb70f7c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=094915ae2c12f1b31224628…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Jul 12 15:43:30 2006 -0700 msi: Update the files target paths as well, because a parent directory might have been changed. --- dlls/msi/install.c | 16 ++++++++++++++++ dlls/msi/tests/package.c | 7 ++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index 5eaf10b..a09782d 100644 --- a/dlls/msi/install.c +++ b/dlls/msi/install.c @@ -331,6 +331,7 @@ UINT MSI_SetTargetPathW(MSIPACKAGE *pack LPWSTR path = NULL; LPWSTR path2 = NULL; MSIFOLDER *folder; + MSIFILE *file; TRACE("(%p %s %s)\n",package, debugstr_w(szFolder),debugstr_w(szFolderPath)); @@ -374,6 +375,21 @@ UINT MSI_SetTargetPathW(MSIPACKAGE *pack path2 = resolve_folder(package, f->Directory, FALSE, TRUE, NULL); msi_free(path2); } + + LIST_FOR_EACH_ENTRY( file, &package->files, MSIFILE, entry ) + { + MSICOMPONENT *comp = file->Component; + LPWSTR p; + + if (!comp) + continue; + + p = resolve_folder(package, comp->Directory, FALSE, FALSE, NULL); + msi_free(file->TargetPath); + + file->TargetPath = build_directory_name(2, p, file->FileName); + msi_free(p); + } } msi_free(path); diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 338b3fb..7db243a 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -499,11 +499,8 @@ static void test_settargetpath(void) ok( r == ERROR_SUCCESS, "MsiSetTargetPath returned %d\n", r ); query_file_path( hpkg, "[#TestFile]", buffer ); - todo_wine - { - ok( !lstrcmp(buffer, "C:\\one\\two\\TestDir\\testfile.txt"), - "Expected C:\\one\\two\\TestDir\\testfile.txt, got %s\n", buffer ); - } + ok( !lstrcmp(buffer, "C:\\one\\two\\TestDir\\testfile.txt"), + "Expected C:\\one\\two\\TestDir\\testfile.txt, got %s\n", buffer ); MsiCloseHandle( hpkg ); }
1
0
0
0
Thomas Kho : notepad: Change file not saved alert title to match Windows' notepad.exe.
by Alexandre Julliard
13 Jul '06
13 Jul '06
Module: wine Branch: refs/heads/master Commit: 724dd10ee80fe8b909c914dca07be13dacf251e0 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=724dd10ee80fe8b909c914d…
Author: Thomas Kho <tkho(a)ucla.edu> Date: Wed Jul 12 14:15:42 2006 -0700 notepad: Change file not saved alert title to match Windows' notepad.exe. --- programs/notepad/dialog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/notepad/dialog.c b/programs/notepad/dialog.c index 1488af0..4125326 100644 --- a/programs/notepad/dialog.c +++ b/programs/notepad/dialog.c @@ -104,7 +104,7 @@ static int AlertFileNotSaved(LPCWSTR szF wsprintf(szMessage, szResource, szFileName[0] ? szFileName : szUntitled); /* Load Caption */ - LoadString(Globals.hInstance, STRING_ERROR, szResource, SIZEOF(szResource)); + LoadString(Globals.hInstance, STRING_NOTEPAD, szResource, SIZEOF(szResource)); /* Display modal */ return MessageBox(Globals.hMainWnd, szMessage, szResource, MB_ICONEXCLAMATION|MB_YESNOCANCEL);
1
0
0
0
← Newer
1
...
48
49
50
51
52
53
54
...
86
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
Results per page:
10
25
50
100
200