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 2010
----- 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
2 participants
892 discussions
Start a n
N
ew thread
Hans Leidekker : msi: Register dlls directly in the SelfRegModules and SelfUnregModules actions.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: 64eec8f9fac2893a351dd6d27a756c5c16bde07c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=64eec8f9fac2893a351dd6d27…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:43:27 2010 +0200 msi: Register dlls directly in the SelfRegModules and SelfUnregModules actions. --- dlls/msi/action.c | 82 ++++++++++++++++++---------------------------------- 1 files changed, 29 insertions(+), 53 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index a5c6654..bb559c0 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -4333,23 +4333,38 @@ static UINT ACTION_RemoveIniValues( MSIPACKAGE *package ) return ERROR_SUCCESS; } +static void register_dll( const WCHAR *dll, BOOL unregister ) +{ + HMODULE hmod; + + hmod = LoadLibraryExW( dll, 0, LOAD_WITH_ALTERED_SEARCH_PATH ); + if (hmod) + { + HRESULT (WINAPI *func_ptr)( void ); + const char *func = unregister ? "DllUnregisterServer" : "DllRegisterServer"; + + func_ptr = (void *)GetProcAddress( hmod, func ); + if (func_ptr) + { + HRESULT hr = func_ptr(); + if (FAILED( hr )) + WARN("failed to register dll 0x%08x\n", hr); + } + else + WARN("entry point %s not found\n", func); + FreeLibrary( hmod ); + return; + } + WARN("failed to load library %u\n", GetLastError()); +} + static UINT ITERATE_SelfRegModules(MSIRECORD *row, LPVOID param) { MSIPACKAGE *package = param; LPCWSTR filename; - LPWSTR FullName; MSIFILE *file; - DWORD len; - static const WCHAR ExeStr[] = - {'r','e','g','s','v','r','3','2','.','e','x','e',' ','\"',0}; - static const WCHAR close[] = {'\"',0}; - STARTUPINFOW si; - PROCESS_INFORMATION info; - BOOL brc; MSIRECORD *uirow; - memset(&si,0,sizeof(STARTUPINFOW)); - filename = MSI_RecordGetString(row,1); file = get_loaded_file( package, filename ); @@ -4359,23 +4374,9 @@ static UINT ITERATE_SelfRegModules(MSIRECORD *row, LPVOID param) return ERROR_SUCCESS; } - len = strlenW(ExeStr) + strlenW( file->TargetPath ) + 2; - - FullName = msi_alloc(len*sizeof(WCHAR)); - strcpyW(FullName,ExeStr); - strcatW( FullName, file->TargetPath ); - strcatW(FullName,close); - - TRACE("Registering %s\n",debugstr_w(FullName)); - brc = CreateProcessW(NULL, FullName, NULL, NULL, FALSE, 0, NULL, c_colon, - &si, &info); + TRACE("Registering %s\n", debugstr_w( file->TargetPath )); - if (brc) - { - CloseHandle(info.hThread); - msi_dialog_check_messages(info.hProcess); - CloseHandle(info.hProcess); - } + register_dll( file->TargetPath, FALSE ); uirow = MSI_CreateRecord( 2 ); MSI_RecordSetStringW( uirow, 1, filename ); @@ -4383,7 +4384,6 @@ static UINT ITERATE_SelfRegModules(MSIRECORD *row, LPVOID param) ui_actiondata( package, szSelfRegModules, uirow ); msiobj_release( &uirow->hdr ); - msi_free( FullName ); return ERROR_SUCCESS; } @@ -4410,21 +4410,11 @@ static UINT ACTION_SelfRegModules(MSIPACKAGE *package) static UINT ITERATE_SelfUnregModules( MSIRECORD *row, LPVOID param ) { - static const WCHAR regsvr32[] = - {'r','e','g','s','v','r','3','2','.','e','x','e',' ','/','u',' ','\"',0}; - static const WCHAR close[] = {'\"',0}; MSIPACKAGE *package = param; LPCWSTR filename; - LPWSTR cmdline; MSIFILE *file; - DWORD len; - STARTUPINFOW si; - PROCESS_INFORMATION pi; - BOOL ret; MSIRECORD *uirow; - memset( &si, 0, sizeof(STARTUPINFOW) ); - filename = MSI_RecordGetString( row, 1 ); file = get_loaded_file( package, filename ); @@ -4434,22 +4424,9 @@ static UINT ITERATE_SelfUnregModules( MSIRECORD *row, LPVOID param ) return ERROR_SUCCESS; } - len = strlenW( regsvr32 ) + strlenW( file->TargetPath ) + 2; - - cmdline = msi_alloc( len * sizeof(WCHAR) ); - strcpyW( cmdline, regsvr32 ); - strcatW( cmdline, file->TargetPath ); - strcatW( cmdline, close ); - - TRACE("Unregistering %s\n", debugstr_w(cmdline)); + TRACE("Unregistering %s\n", debugstr_w( file->TargetPath )); - ret = CreateProcessW( NULL, cmdline, NULL, NULL, FALSE, 0, NULL, c_colon, &si, &pi ); - if (ret) - { - CloseHandle( pi.hThread ); - msi_dialog_check_messages( pi.hProcess ); - CloseHandle( pi.hProcess ); - } + register_dll( file->TargetPath, TRUE ); uirow = MSI_CreateRecord( 2 ); MSI_RecordSetStringW( uirow, 1, filename ); @@ -4457,7 +4434,6 @@ static UINT ITERATE_SelfUnregModules( MSIRECORD *row, LPVOID param ) ui_actiondata( package, szSelfUnregModules, uirow ); msiobj_release( &uirow->hdr ); - msi_free( cmdline ); return ERROR_SUCCESS; }
1
0
0
0
Hans Leidekker : msi: Warn if a transform file cannot be opened.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: bdda3b950c145eafffc3a53c5467fc842048c041 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bdda3b950c145eafffc3a53c5…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:43:11 2010 +0200 msi: Warn if a transform file cannot be opened. --- dlls/msi/msiquery.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/msi/msiquery.c b/dlls/msi/msiquery.c index f2723af..df81a74 100644 --- a/dlls/msi/msiquery.c +++ b/dlls/msi/msiquery.c @@ -733,7 +733,10 @@ UINT MSI_DatabaseApplyTransformW( MSIDATABASE *db, r = StgOpenStorage( szTransformFile, NULL, STGM_DIRECT|STGM_READ|STGM_SHARE_DENY_WRITE, NULL, 0, &stg); if ( FAILED(r) ) + { + WARN("failed to open transform 0x%08x\n", r); return ret; + } r = IStorage_Stat( stg, &stat, STATFLAG_NONAME ); if ( FAILED( r ) )
1
0
0
0
Hans Leidekker : msi: Add some tests for MsiGetSourcePath.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: 2b0c45674fac9b655e5e3339b740fe79cad6ae7f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2b0c45674fac9b655e5e3339b…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:42:56 2010 +0200 msi: Add some tests for MsiGetSourcePath. --- dlls/msi/tests/package.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index e4f7136..c9e0d65 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -10151,6 +10151,20 @@ static void test_MsiGetSourcePath(void) "Expected path to be unchanged, got \"%s\"\n", path); ok(size == MAX_PATH, "Expected size to be unchanged, got %d\n", size); + size = MAX_PATH; + lstrcpyA(path, "kiwi"); + r = MsiGetProperty(hpkg, "SourceDir", path, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(path, ""), "Expected \"\", got \"%s\"\n", path); + ok(size == 0, "Expected 0, got %d\n", size); + + size = MAX_PATH; + lstrcpyA(path, "kiwi"); + r = MsiGetProperty(hpkg, "SOURCEDIR", path, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(path, ""), "Expected \"\", got \"%s\"\n", path); + ok(size == 0, "Expected 0, got %d\n", size); + /* try SourceDir */ size = MAX_PATH; lstrcpyA(path, "kiwi"); @@ -10172,6 +10186,13 @@ static void test_MsiGetSourcePath(void) /* source path does not exist, but the property exists */ size = MAX_PATH; lstrcpyA(path, "kiwi"); + r = MsiGetProperty(hpkg, "SourceDir", path, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(path, ""), "Expected \"\", got \"%s\"\n", path); + ok(size == 0, "Expected 0, got %d\n", size); + + size = MAX_PATH; + lstrcpyA(path, "kiwi"); r = MsiGetProperty(hpkg, "SOURCEDIR", path, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); ok(!lstrcmpA(path, ""), "Expected \"\", got \"%s\"\n", path); @@ -10455,6 +10476,31 @@ static void test_MsiGetSourcePath(void) ok(!lstrcmpA(path, cwd), "Expected \"%s\", got \"%s\"\n", cwd, path); ok(size == lstrlenA(cwd), "Expected %d, got %d\n", lstrlenA(cwd), size); + /* remove property */ + r = MsiSetProperty(hpkg, "SourceDir", NULL); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* try SourceDir again */ + size = MAX_PATH; + lstrcpyA(path, "kiwi"); + r = MsiGetSourcePath(hpkg, "SourceDir", path, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(path, cwd), "Expected \"%s\", got \"%s\"\n", cwd, path); + ok(size == lstrlenA(cwd), "Expected %d, got %d\n", lstrlenA(cwd), size); + + /* set property to a valid directory */ + r = MsiSetProperty(hpkg, "SOURCEDIR", cwd); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* try SOURCEDIR again */ + size = MAX_PATH; + lstrcpyA(path, "kiwi"); + r = MsiGetSourcePath(hpkg, "SOURCEDIR", path, &size); + ok(r == ERROR_DIRECTORY, "Expected ERROR_DIRECTORY, got %d\n", r); + ok(!lstrcmpA(path, "kiwi"), + "Expected path to be unchanged, got \"%s\"\n", path); + ok(size == MAX_PATH, "Expected size to be unchanged, got %d\n", size); + MsiCloseHandle(hpkg); /* compressed source */
1
0
0
0
Hans Leidekker : msi: Set/ unset the SourceDir property at the right stage in the execution sequence.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: bd634c0491297bf05803a2b7ac113ba56ad07207 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bd634c0491297bf05803a2b7a…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:42:37 2010 +0200 msi: Set/unset the SourceDir property at the right stage in the execution sequence. --- dlls/msi/action.c | 6 +- dlls/msi/media.c | 1 + dlls/msi/msipriv.h | 1 + dlls/msi/tests/install.c | 205 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 212 insertions(+), 1 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=bd634c0491297bf05803a…
1
0
0
0
Hans Leidekker : msi: Never defer standard actions.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: ad971803daeb9057626982f9cfe47eefbb14227b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ad971803daeb9057626982f9c…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:42:21 2010 +0200 msi: Never defer standard actions. --- dlls/msi/action.c | 54 ++++++++++++++++----------------------------------- dlls/msi/events.c | 2 +- dlls/msi/msipriv.h | 2 +- 3 files changed, 19 insertions(+), 39 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 29071d0..40f376a 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -814,7 +814,7 @@ static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param) if (needs_ui_sequence(package)) rc = ACTION_PerformUIAction(package, action, -1); else - rc = ACTION_PerformAction(package, action, -1, FALSE); + rc = ACTION_PerformAction(package, action, -1); msi_dialog_check_messages( NULL ); @@ -1618,7 +1618,7 @@ static UINT execute_script(MSIPACKAGE *package, UINT script ) action = package->script->Actions[script][i]; ui_actionstart(package, action); TRACE("Executing Action (%s)\n",debugstr_w(action)); - rc = ACTION_PerformAction(package, action, script, TRUE); + rc = ACTION_PerformAction(package, action, script); if (rc != ERROR_SUCCESS) break; } @@ -7319,47 +7319,27 @@ StandardActions[] = { NULL, NULL }, }; -static BOOL ACTION_HandleStandardAction(MSIPACKAGE *package, LPCWSTR action, - UINT* rc, BOOL force ) +static BOOL ACTION_HandleStandardAction( MSIPACKAGE *package, LPCWSTR action, UINT *rc ) { BOOL ret = FALSE; - BOOL run = force; - int i; - - if (!run && !package->script->CurrentlyScripting) - run = TRUE; - - if (!run) - { - if (strcmpW(action,szInstallFinalize) == 0 || - strcmpW(action,szInstallExecute) == 0 || - strcmpW(action,szInstallExecuteAgain) == 0) - run = TRUE; - } + UINT i; i = 0; while (StandardActions[i].action != NULL) { - if (strcmpW(StandardActions[i].action, action)==0) + if (!strcmpW( StandardActions[i].action, action )) { - if (!run) + ui_actionstart( package, action ); + if (StandardActions[i].handler) { - ui_actioninfo(package, action, TRUE, 0); - *rc = schedule_action(package,INSTALL_SCRIPT,action); - ui_actioninfo(package, action, FALSE, *rc); + ui_actioninfo( package, action, TRUE, 0 ); + *rc = StandardActions[i].handler( package ); + ui_actioninfo( package, action, FALSE, *rc ); } else { - ui_actionstart(package, action); - if (StandardActions[i].handler) - { - *rc = StandardActions[i].handler(package); - } - else - { - FIXME("unhandled standard action %s\n",debugstr_w(action)); - *rc = ERROR_SUCCESS; - } + FIXME("unhandled standard action %s\n", debugstr_w(action)); + *rc = ERROR_SUCCESS; } ret = TRUE; break; @@ -7369,17 +7349,17 @@ static BOOL ACTION_HandleStandardAction(MSIPACKAGE *package, LPCWSTR action, return ret; } -UINT ACTION_PerformAction(MSIPACKAGE *package, const WCHAR *action, UINT script, BOOL force) +UINT ACTION_PerformAction(MSIPACKAGE *package, const WCHAR *action, UINT script) { UINT rc = ERROR_SUCCESS; BOOL handled; TRACE("Performing action (%s)\n", debugstr_w(action)); - handled = ACTION_HandleStandardAction(package, action, &rc, force); + handled = ACTION_HandleStandardAction(package, action, &rc); if (!handled) - handled = ACTION_HandleCustomAction(package, action, &rc, script, force); + handled = ACTION_HandleCustomAction(package, action, &rc, script, TRUE); if (!handled) { @@ -7397,7 +7377,7 @@ UINT ACTION_PerformUIAction(MSIPACKAGE *package, const WCHAR *action, UINT scrip TRACE("Performing action (%s)\n", debugstr_w(action)); - handled = ACTION_HandleStandardAction(package, action, &rc,TRUE); + handled = ACTION_HandleStandardAction(package, action, &rc); if (!handled) handled = ACTION_HandleCustomAction(package, action, &rc, script, FALSE); @@ -7462,7 +7442,7 @@ static UINT ACTION_PerformActionSequence(MSIPACKAGE *package, UINT seq) if (needs_ui_sequence(package)) rc = ACTION_PerformUIAction(package, action, -1); else - rc = ACTION_PerformAction(package, action, -1, FALSE); + rc = ACTION_PerformAction(package, action, -1); msiobj_release(&row->hdr); } diff --git a/dlls/msi/events.c b/dlls/msi/events.c index 4ed395b..157d185 100644 --- a/dlls/msi/events.c +++ b/dlls/msi/events.c @@ -163,7 +163,7 @@ static UINT ControlEvent_SpawnWaitDialog(MSIPACKAGE* package, LPCWSTR argument, static UINT ControlEvent_DoAction(MSIPACKAGE* package, LPCWSTR argument, msi_dialog* dialog) { - ACTION_PerformAction(package,argument,-1,TRUE); + ACTION_PerformAction(package, argument, -1); return ERROR_SUCCESS; } diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 0be3eb9..c9b7bc7 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -865,7 +865,7 @@ extern WCHAR gszLogFile[MAX_PATH]; extern HINSTANCE msi_hInstance; /* action related functions */ -extern UINT ACTION_PerformAction(MSIPACKAGE *package, const WCHAR *action, UINT script, BOOL force); +extern UINT ACTION_PerformAction(MSIPACKAGE *package, const WCHAR *action, UINT script); extern UINT ACTION_PerformUIAction(MSIPACKAGE *package, const WCHAR *action, UINT script); extern void ACTION_FinishCustomActions( const MSIPACKAGE* package); extern UINT ACTION_CustomAction(MSIPACKAGE *package,const WCHAR *action, UINT script, BOOL execute);
1
0
0
0
Hans Leidekker : msi/tests: Properly contruct the icon path for win9x.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: ac924566fb72cf8325f9037a81f2666605ffa8ef URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ac924566fb72cf8325f9037a8…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:42:06 2010 +0200 msi/tests: Properly contruct the icon path for win9x. --- dlls/msi/tests/install.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 1d27658..fb78cb4 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -10045,10 +10045,10 @@ static void test_icon_table(void) /* win9x with MSI 2.0 installs the icon to a different folder, same as above */ lstrcpyA(win9xpath, APP_DATA_DIR); - lstrcatA(path, "\\"); - lstrcatA(path, "Microsoft\\Installer\\"); - lstrcatA(path, prodcode); - lstrcatA(path, "\\testicon"); + lstrcatA(win9xpath, "\\"); + lstrcatA(win9xpath, "Microsoft\\Installer\\"); + lstrcatA(win9xpath, prodcode); + lstrcatA(win9xpath, "\\testicon"); lstrcpyA(path, WINDOWS_DIR); lstrcatA(path, "\\");
1
0
0
0
Hans Leidekker : msi/tests: Initialize a string buffer and fix some leaks.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: 148887082c7e611b2516d6833489f264b1a68850 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=148887082c7e611b2516d6833…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:41:49 2010 +0200 msi/tests: Initialize a string buffer and fix some leaks. --- dlls/msi/tests/db.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 17c5c1f..5c87e3f 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -8886,6 +8886,7 @@ static void test_createtable(void) size = sizeof(buffer); res = MsiRecordGetString(hrec, 1, buffer, &size ); todo_wine ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); + MsiCloseHandle( hrec ); res = MsiViewClose( htab ); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); @@ -8915,10 +8916,12 @@ static void test_createtable(void) res = MsiViewGetColumnInfo( htab, MSICOLINFO_NAMES, &hrec ); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); + buffer[0] = 0; size = sizeof(buffer); res = MsiRecordGetString(hrec, 1, buffer, &size ); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); ok(!strcmp(buffer,"b"), "b != %s\n", buffer); + MsiCloseHandle( hrec ); res = MsiViewClose( htab ); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); @@ -8942,6 +8945,7 @@ static void test_createtable(void) res = MsiViewGetColumnInfo( htab, MSICOLINFO_NAMES, &hrec ); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); + buffer[0] = 0; size = sizeof(buffer); res = MsiRecordGetString(hrec, 1, buffer, &size ); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
1
0
0
0
Hans Leidekker : msi: Fix a memory leak.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: bb5ab2672039a7fc938080dcecee1a22298922aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bb5ab2672039a7fc938080dce…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jul 23 09:41:23 2010 +0200 msi: Fix a memory leak. --- dlls/msi/appsearch.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 34130b6..a516bda 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -958,7 +958,10 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATU rc = ACTION_AppSearchSigName(package, parentName, &parentSig, &parent); ACTION_FreeSignature(&parentSig); if (!parent) + { + msiobj_release(&row->hdr); return ERROR_SUCCESS; + } } sz = MAX_PATH;
1
0
0
0
Thomas Mullaly : urlmon: Partially implemented IUri_GetHost.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: cfc0f97d93ccac3fa11c574978a3d1ff69581d61 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cfc0f97d93ccac3fa11c57497…
Author: Thomas Mullaly <thomas.mullaly(a)gmail.com> Date: Thu Jun 24 16:24:48 2010 -0400 urlmon: Partially implemented IUri_GetHost. --- dlls/urlmon/tests/uri.c | 14 +++++++------- dlls/urlmon/uri.c | 37 ++++++++++++++++++++++++++++++------- 2 files changed, 37 insertions(+), 14 deletions(-) diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c index 217654c..46b2d64 100644 --- a/dlls/urlmon/tests/uri.c +++ b/dlls/urlmon/tests/uri.c @@ -329,7 +329,7 @@ static const uri_properties uri_tests[] = { {"",S_FALSE,TRUE}, {".txt",S_OK,TRUE}, {"",S_FALSE,TRUE}, - {"127.0.0.1",S_OK,TRUE}, + {"127.0.0.1",S_OK,FALSE}, {"",S_FALSE,FALSE}, {"/test%20dir/test.txt",S_OK,TRUE}, {"/test%20dir/test.txt",S_OK,TRUE}, @@ -1233,7 +1233,7 @@ static const uri_properties uri_tests[] = { {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, - {"127.0.0.100",S_OK,TRUE}, + {"127.0.0.100",S_OK,FALSE}, {"",S_FALSE,FALSE}, {"/",S_OK,TRUE}, {"/",S_OK,TRUE}, @@ -1263,7 +1263,7 @@ static const uri_properties uri_tests[] = { {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, - {"127.0.0.0",S_OK,TRUE}, + {"127.0.0.0",S_OK,FALSE}, {"",S_FALSE,FALSE}, {"/",S_OK,TRUE}, {"/",S_OK,TRUE}, @@ -1293,7 +1293,7 @@ static const uri_properties uri_tests[] = { {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, - {"0.1.226.64",S_OK,TRUE}, + {"0.1.226.64",S_OK,FALSE}, {"",S_FALSE,FALSE}, {"/",S_OK,TRUE}, {"/",S_OK,TRUE}, @@ -1323,7 +1323,7 @@ static const uri_properties uri_tests[] = { {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, - {"255.255.255.255",S_OK,TRUE}, + {"255.255.255.255",S_OK,FALSE}, {"",S_FALSE,FALSE}, {"/",S_OK,TRUE}, {"/",S_OK,TRUE}, @@ -1383,7 +1383,7 @@ static const uri_properties uri_tests[] = { {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, - {"4294967295",S_OK,TRUE}, + {"4294967295",S_OK,FALSE}, {"",S_FALSE,FALSE}, {"/",S_OK,TRUE}, {"/",S_OK,TRUE}, @@ -1413,7 +1413,7 @@ static const uri_properties uri_tests[] = { {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, {"",S_FALSE,TRUE}, - {"127.001",S_OK,TRUE}, + {"127.001",S_OK,FALSE}, {"",S_FALSE,FALSE}, {"/",S_OK,TRUE}, {"/",S_OK,TRUE}, diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c index 060b92e..82f48a0 100644 --- a/dlls/urlmon/uri.c +++ b/dlls/urlmon/uri.c @@ -1241,6 +1241,22 @@ static HRESULT WINAPI Uri_GetPropertyBSTR(IUri *iface, Uri_PROPERTY uriProp, BST } switch(uriProp) { + case Uri_PROPERTY_HOST: + if(This->host_start > -1) { + *pbstrProperty = SysAllocStringLen(This->canon_uri+This->host_start, This->host_len); + hres = S_OK; + } else { + /* Canonicalizing/parsing the host of a URI is only partially + * implemented, so return E_NOTIMPL for now. + */ + FIXME("(%p)->(%d %p %x) Partially implemented\n", This, uriProp, pbstrProperty, dwFlags); + return E_NOTIMPL; + } + + if(!(*pbstrProperty)) + hres = E_OUTOFMEMORY; + + break; case Uri_PROPERTY_PASSWORD: if(This->userinfo_split > -1) { *pbstrProperty = SysAllocStringLen( @@ -1338,6 +1354,18 @@ static HRESULT WINAPI Uri_GetPropertyLength(IUri *iface, Uri_PROPERTY uriProp, D } switch(uriProp) { + case Uri_PROPERTY_HOST: + if(This->host_start == -1) { + /* Canonicalizing/parsing the host of a URI is only partially + * implemented, so return E_NOTIMPL for now. + */ + FIXME("(%p)->(%d %p %x) Partially implemented\n", This, uriProp, pcchProperty, dwFlags); + return E_NOTIMPL; + } + + *pcchProperty = This->host_len; + hres = (This->host_start > -1) ? S_OK : S_FALSE; + break; case Uri_PROPERTY_PASSWORD: *pcchProperty = (This->userinfo_split > -1) ? This->userinfo_len-This->userinfo_split-1 : 0; hres = (This->userinfo_split > -1) ? S_OK : S_FALSE; @@ -1483,13 +1511,8 @@ static HRESULT WINAPI Uri_GetFragment(IUri *iface, BSTR *pstrFragment) static HRESULT WINAPI Uri_GetHost(IUri *iface, BSTR *pstrHost) { - Uri *This = URI_THIS(iface); - FIXME("(%p)->(%p)\n", This, pstrHost); - - if(!pstrHost) - return E_POINTER; - - return E_NOTIMPL; + TRACE("(%p)->(%p)\n", iface, pstrHost); + return Uri_GetPropertyBSTR(iface, Uri_PROPERTY_HOST, pstrHost, 0); } static HRESULT WINAPI Uri_GetPassword(IUri *iface, BSTR *pstrPassword)
1
0
0
0
Thomas Mullaly : urlmon/tests: Added more test URIs.
by Alexandre Julliard
23 Jul '10
23 Jul '10
Module: wine Branch: master Commit: 6a1dd3d18b1f5caf5b5de487b93e8addf2c32e9c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6a1dd3d18b1f5caf5b5de487b…
Author: Thomas Mullaly <thomas.mullaly(a)gmail.com> Date: Thu Jun 24 00:00:38 2010 -0400 urlmon/tests: Added more test URIs. --- dlls/urlmon/tests/uri.c | 210 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 210 insertions(+), 0 deletions(-) diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c index ab36dc5..217654c 100644 --- a/dlls/urlmon/tests/uri.c +++ b/dlls/urlmon/tests/uri.c @@ -1219,6 +1219,216 @@ static const uri_properties uri_tests[] = { {URL_SCHEME_UNKNOWN,S_OK,FALSE}, {URLZONE_INVALID,E_NOTIMPL,FALSE} } + }, + /* It normalizes IPv4 addresses correctly. */ + { "
http://127.000.000.100/
", 0, S_OK, FALSE, + Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST| + Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME| + Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME, + TRUE, + { + {"
http://127.0.0.100/
",S_OK,TRUE}, + {"127.0.0.100",S_OK,TRUE}, + {"
http://127.0.0.100/
",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"127.0.0.100",S_OK,TRUE}, + {"",S_FALSE,FALSE}, + {"/",S_OK,TRUE}, + {"/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"
http://127.000.000.100/
",S_OK,FALSE}, + {"http",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE} + }, + { + {Uri_HOST_IPV4,S_OK,TRUE}, + {80,S_OK,TRUE}, + {URL_SCHEME_HTTP,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } + }, + /* Make sure it normalizes partial IPv4 addresses correctly. */ + { "
http://127.0/
", 0, S_OK, FALSE, + Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST| + Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME| + Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME, + TRUE, + { + {"
http://127.0.0.0/
",S_OK,TRUE}, + {"127.0.0.0",S_OK,TRUE}, + {"
http://127.0.0.0/
",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"127.0.0.0",S_OK,TRUE}, + {"",S_FALSE,FALSE}, + {"/",S_OK,TRUE}, + {"/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"
http://127.0/
",S_OK,FALSE}, + {"http",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE} + }, + { + {Uri_HOST_IPV4,S_OK,TRUE}, + {80,S_OK,TRUE}, + {URL_SCHEME_HTTP,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } + }, + /* Make sure it converts implicit IPv4's correctly. */ + { "
http://123456/
", 0, S_OK, FALSE, + Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST| + Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME| + Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME, + TRUE, + { + {"
http://0.1.226.64/
",S_OK,TRUE}, + {"0.1.226.64",S_OK,TRUE}, + {"
http://0.1.226.64/
",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"0.1.226.64",S_OK,TRUE}, + {"",S_FALSE,FALSE}, + {"/",S_OK,TRUE}, + {"/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"
http://123456/
",S_OK,FALSE}, + {"http",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE} + }, + { + {Uri_HOST_IPV4,S_OK,TRUE}, + {80,S_OK,TRUE}, + {URL_SCHEME_HTTP,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } + }, + /* UINT_MAX */ + { "
http://4294967295/
", 0, S_OK, FALSE, + Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST| + Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME| + Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME, + TRUE, + { + {"
http://255.255.255.255/
",S_OK,TRUE}, + {"255.255.255.255",S_OK,TRUE}, + {"
http://255.255.255.255/
",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"255.255.255.255",S_OK,TRUE}, + {"",S_FALSE,FALSE}, + {"/",S_OK,TRUE}, + {"/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"
http://4294967295/
",S_OK,FALSE}, + {"http",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE} + }, + { + {Uri_HOST_IPV4,S_OK,TRUE}, + {80,S_OK,TRUE}, + {URL_SCHEME_HTTP,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } + }, + /* UINT_MAX+1 */ + { "
http://4294967296/
", 0, S_OK, FALSE, + Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST| + Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME| + Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME, + TRUE, + { + {"
http://4294967296/
",S_OK,TRUE}, + {"4294967296",S_OK,TRUE}, + {"
http://4294967296/
",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"4294967296",S_OK,TRUE}, + {"",S_FALSE,FALSE}, + {"/",S_OK,TRUE}, + {"/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"
http://4294967296/
",S_OK,FALSE}, + {"http",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE} + }, + { + {Uri_HOST_DNS,S_OK,TRUE}, + {80,S_OK,TRUE}, + {URL_SCHEME_HTTP,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } + }, + /* Window's doesn't normalize IP address for unknown schemes. */ + { "1234://4294967295/", 0, S_OK, FALSE, + Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST| + Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME| + Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME, + TRUE, + { + {"1234://4294967295/",S_OK,TRUE}, + {"4294967295",S_OK,TRUE}, + {"1234://4294967295/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"4294967295",S_OK,TRUE}, + {"",S_FALSE,FALSE}, + {"/",S_OK,TRUE}, + {"/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"1234://4294967295/",S_OK,FALSE}, + {"1234",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE} + }, + { + {Uri_HOST_IPV4,S_OK,TRUE}, + {0,S_FALSE,TRUE}, + {URL_SCHEME_UNKNOWN,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } + }, + /* Window's doesn't normalize IP address for unknown schemes. */ + { "1234://127.001/", 0, S_OK, FALSE, + Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST| + Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME| + Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME, + TRUE, + { + {"1234://127.001/",S_OK,TRUE}, + {"127.001",S_OK,TRUE}, + {"1234://127.001/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"",S_FALSE,TRUE}, + {"127.001",S_OK,TRUE}, + {"",S_FALSE,FALSE}, + {"/",S_OK,TRUE}, + {"/",S_OK,TRUE}, + {"",S_FALSE,TRUE}, + {"1234://127.001/",S_OK,FALSE}, + {"1234",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE} + }, + { + {Uri_HOST_IPV4,S_OK,TRUE}, + {0,S_FALSE,TRUE}, + {URL_SCHEME_UNKNOWN,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } } };
1
0
0
0
← Newer
1
...
25
26
27
28
29
30
31
...
90
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
Results per page:
10
25
50
100
200