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
October 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
3 participants
1032 discussions
Start a n
N
ew thread
Kai Blin : secur32: Add include guard to hmac_md5.h.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 344ce9e69b776aa63570fe03715526e83b1849f9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=344ce9e69b776aa63570fe037…
Author: Kai Blin <kai.blin(a)gmail.com> Date: Thu Oct 19 14:31:23 2006 +0200 secur32: Add include guard to hmac_md5.h. --- dlls/secur32/hmac_md5.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/secur32/hmac_md5.h b/dlls/secur32/hmac_md5.h index 81e4dd6..29e3a33 100644 --- a/dlls/secur32/hmac_md5.h +++ b/dlls/secur32/hmac_md5.h @@ -18,6 +18,9 @@ * This file holds the declarations needed for HMAC-MD5. */ +#ifndef _HMAC_MD5_H_ +#define _HMAC_MD5_H_ + #include <string.h> typedef struct @@ -41,3 +44,4 @@ void MD5Final( MD5_CTX *ctx ); void HMACMD5Init(HMAC_MD5_CTX *ctx, unsigned char *key, unsigned int key_len); void HMACMD5Update(HMAC_MD5_CTX *ctx, unsigned char *data, unsigned int data_len); void HMACMD5Final(HMAC_MD5_CTX *ctx, unsigned char *digest); +#endif /*_HMAC_MD5_H_*/
1
0
0
0
Christoph Frick : gdi32: Add wglShareList to gdi32.spec.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 85af727fd8891764d83cd4e444beb011966190a3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=85af727fd8891764d83cd4e44…
Author: Christoph Frick <frick(a)sc-networks.de> Date: Fri Oct 20 09:46:31 2006 +0200 gdi32: Add wglShareList to gdi32.spec. --- dlls/gdi/gdi32.spec | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/gdi/gdi32.spec b/dlls/gdi/gdi32.spec index 06d8995..cf08bdf 100644 --- a/dlls/gdi/gdi32.spec +++ b/dlls/gdi/gdi32.spec @@ -503,6 +503,7 @@ # @ stdcall wglGetCurrentContext() @ stdcall wglGetCurrentDC() @ stdcall wglMakeCurrent(long long) +@ stdcall wglShareLists(long long) @ stdcall wglUseFontBitmapsA(long long long long) @ stdcall wglUseFontBitmapsW(long long long long)
1
0
0
0
James Hawkins : msi: Add tests for integer column types.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: fcd57a3fc4e8a2a0664ba280a4fc570009aa30ee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fcd57a3fc4e8a2a0664ba280a…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Oct 19 18:40:09 2006 -0700 msi: Add tests for integer column types. --- dlls/msi/tests/db.c | 156 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 156 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 7742d06..6b71abd 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -2793,6 +2793,161 @@ static void test_alter(void) DeleteFile(msifile); } +static void test_integers(void) +{ + MSIHANDLE hdb = 0, view = 0, rec = 0; + DWORD count, i; + const char *query; + UINT r; + + /* just MsiOpenDatabase should not create a file */ + r = MsiOpenDatabase(msifile, MSIDBOPEN_CREATE, &hdb); + ok(r == ERROR_SUCCESS, "MsiOpenDatabase failed\n"); + + /* create a table */ + query = "CREATE TABLE `integers` ( " + "`one` SHORT, `two` INT, `three` INTEGER, `four` LONG, " + "`five` SHORT NOT NULL, `six` INT NOT NULL, " + "`seven` INTEGER NOT NULL, `eight` LONG NOT NULL " + "PRIMARY KEY `one`)"; + todo_wine + { + r = MsiDatabaseOpenView(hdb, query, &view); + ok(r == ERROR_SUCCESS, "MsiDatabaseOpenView failed\n"); + r = MsiViewExecute(view, 0); + ok(r == ERROR_SUCCESS, "MsiViewExecute failed\n"); + r = MsiViewClose(view); + ok(r == ERROR_SUCCESS, "MsiViewClose failed\n"); + } + r = MsiCloseHandle(view); + ok(r == ERROR_SUCCESS, "MsiCloseHandle failed\n"); + + query = "SELECT * FROM `integers`"; + r = MsiDatabaseOpenView(hdb, query, &view); + todo_wine + { + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + } + + r = MsiViewGetColumnInfo(view, MSICOLINFO_NAMES, &rec); + count = MsiRecordGetFieldCount(rec); + todo_wine + { + ok(count == 8, "Expected 8, got %d\n", count); + ok(check_record(rec, 1, "one"), "Expected one\n"); + ok(check_record(rec, 2, "two"), "Expected two\n"); + ok(check_record(rec, 3, "three"), "Expected three\n"); + ok(check_record(rec, 4, "four"), "Expected four\n"); + ok(check_record(rec, 5, "five"), "Expected five\n"); + ok(check_record(rec, 6, "six"), "Expected six\n"); + ok(check_record(rec, 7, "seven"), "Expected seven\n"); + ok(check_record(rec, 8, "eight"), "Expected eight\n"); + } + MsiCloseHandle(rec); + + r = MsiViewGetColumnInfo(view, MSICOLINFO_TYPES, &rec); + count = MsiRecordGetFieldCount(rec); + todo_wine + { + ok(count == 8, "Expected 8, got %d\n", count); + ok(check_record(rec, 1, "I2"), "Expected I2\n"); + ok(check_record(rec, 2, "I2"), "Expected I2\n"); + ok(check_record(rec, 3, "I2"), "Expected I2\n"); + ok(check_record(rec, 4, "I4"), "Expected I4\n"); + ok(check_record(rec, 5, "i2"), "Expected i2\n"); + ok(check_record(rec, 6, "i2"), "Expected i2\n"); + ok(check_record(rec, 7, "i2"), "Expected i2\n"); + ok(check_record(rec, 8, "i4"), "Expected i4\n"); + } + MsiCloseHandle(rec); + + MsiViewClose(view); + MsiCloseHandle(view); + + /* insert values into it, NULL where NOT NULL is specified */ + query = "INSERT INTO `integers` ( `one`, `two`, `three`, `four`, `five`, `six`, `seven`, `eight` )" + "VALUES('', '', '', '', '', '', '', '')"; + todo_wine + { + r = MsiDatabaseOpenView(hdb, query, &view); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + r = MsiViewExecute(view, 0); + ok(r == ERROR_FUNCTION_FAILED, "Expected ERROR_FUNCTION_FAILED, got %d\n", r); + } + + MsiViewClose(view); + MsiCloseHandle(view); + + query = "SELECT * FROM `integers`"; + r = do_query(hdb, query, &rec); + todo_wine + { + ok(r == ERROR_NO_MORE_ITEMS, "Expected ERROR_NO_MORE_ITEMS, got %d\n", r); + } + + r = MsiRecordGetFieldCount(rec); + ok(r == -1, "record count wrong: %d\n", r); + + MsiCloseHandle(rec); + + /* insert legitimate values into it */ + query = "INSERT INTO `integers` ( `one`, `two`, `three`, `four`, `five`, `six`, `seven`, `eight` )" + "VALUES('', '2', '', '4', '5', '6', '7', '8')"; + todo_wine + { + r = MsiDatabaseOpenView(hdb, query, &view); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + r = MsiViewExecute(view, 0); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + } + + query = "SELECT * FROM `integers`"; + r = do_query(hdb, query, &rec); + todo_wine + { + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + } + + r = MsiRecordGetFieldCount(rec); + todo_wine + { + ok(r == 8, "record count wrong: %d\n", r); + } + + i = MsiRecordGetInteger(rec, 1); + ok(i == 0x80000000, "Expected 0x80000000, got %d\n", i); + i = MsiRecordGetInteger(rec, 3); + ok(i == 0x80000000, "Expected 0x80000000, got %d\n", i); + todo_wine + { + i = MsiRecordGetInteger(rec, 2); + ok(i == 2, "Expected 2, got %d\n", i); + i = MsiRecordGetInteger(rec, 4); + ok(i == 4, "Expected 4, got %d\n", i); + i = MsiRecordGetInteger(rec, 5); + ok(i == 5, "Expected 5, got %d\n", i); + i = MsiRecordGetInteger(rec, 6); + ok(i == 6, "Expected 6, got %d\n", i); + i = MsiRecordGetInteger(rec, 7); + ok(i == 7, "Expected 7, got %d\n", i); + i = MsiRecordGetInteger(rec, 8); + ok(i == 8, "Expected 8, got %d\n", i); + } + + MsiCloseHandle(rec); + MsiViewClose(view); + MsiCloseHandle(view); + + r = MsiDatabaseCommit(hdb); + ok(r == ERROR_SUCCESS, "MsiDatabaseCommit failed\n"); + + r = MsiCloseHandle(hdb); + ok(r == ERROR_SUCCESS, "MsiCloseHandle failed\n"); + + r = DeleteFile(msifile); + ok(r == TRUE, "file didn't exist after commit\n"); +} + START_TEST(db) { test_msidatabase(); @@ -2813,4 +2968,5 @@ START_TEST(db) test_join(); test_temporary_table(); test_alter(); + test_integers(); }
1
0
0
0
James Hawkins : msi: Integer columns can have the 'NOT NULL' modifier too.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 279f8158f8b96e992f18441822cbce24df855760 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=279f8158f8b96e992f1844182…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Oct 19 17:46:17 2006 -0700 msi: Integer columns can have the 'NOT NULL' modifier too. --- dlls/msi/database.c | 4 +++- dlls/msi/tests/db.c | 9 +++------ dlls/msi/tests/install.c | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/dlls/msi/database.c b/dlls/msi/database.c index b793863..c36139e 100644 --- a/dlls/msi/database.c +++ b/dlls/msi/database.c @@ -388,7 +388,9 @@ static LPWSTR msi_build_createsql_column type = type_char; sprintfW(size, size_fmt, ptr); break; - case 'I': case 'i': + case 'i': + lstrcpyW(extra, type_notnull); + case 'I': if (len == 2) type = type_int; else diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 9a39451..7742d06 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -1433,17 +1433,14 @@ static void test_msiimport(void) count = MsiRecordGetFieldCount(rec); ok(count == 9, "Expected 9, got %d\n", count); ok(check_record(rec, 1, "s255"), "Expected s255\n"); + ok(check_record(rec, 2, "i2"), "Expected i2\n"); + ok(check_record(rec, 3, "i2"), "Expected i2\n"); ok(check_record(rec, 4, "I2"), "Expected I2\n"); + ok(check_record(rec, 5, "i4"), "Expected i4\n"); ok(check_record(rec, 6, "I4"), "Expected I4\n"); ok(check_record(rec, 7, "S255"), "Expected S255\n"); ok(check_record(rec, 8, "S0"), "Expected S0\n"); ok(check_record(rec, 9, "s0"), "Expected s0\n"); - todo_wine - { - ok(check_record(rec, 2, "i2"), "Expected i2\n"); - ok(check_record(rec, 3, "i2"), "Expected i2\n"); - ok(check_record(rec, 5, "i4"), "Expected i4\n"); - } MsiCloseHandle(rec); query = "SELECT * FROM `TestTable`"; diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index fe856f7..f5a2eeb 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -764,13 +764,13 @@ static void test_packagecoltypes(void) count = MsiRecordGetFieldCount( rec ); ok(r == ERROR_SUCCESS, "MsiViewGetColumnInfo failed\n"); ok(count == 6, "Expected 6, got %d\n", count); + ok(check_record(rec, 1, "i2"), "wrong column label\n"); + ok(check_record(rec, 2, "i4"), "wrong column label\n"); ok(check_record(rec, 4, "S255"), "wrong column label\n"); ok(check_record(rec, 5, "S32"), "wrong column label\n"); ok(check_record(rec, 6, "S72"), "wrong column label\n"); todo_wine { - ok(check_record(rec, 1, "i2"), "wrong column label\n"); - ok(check_record(rec, 2, "i4"), "wrong column label\n"); ok(check_record(rec, 3, "L64"), "wrong column label\n"); }
1
0
0
0
James Hawkins : msi: Allow more than one primary key in a table when importing a database.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: a66584e1a26b4bc12ec0ae1befa87fdd67aa0b84 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a66584e1a26b4bc12ec0ae1be…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Oct 19 17:30:13 2006 -0700 msi: Allow more than one primary key in a table when importing a database. --- dlls/msi/database.c | 44 +++++++++++++++++++++++++++++++---------- dlls/msi/tests/db.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 11 deletions(-) diff --git a/dlls/msi/database.c b/dlls/msi/database.c index 266b467..b793863 100644 --- a/dlls/msi/database.c +++ b/dlls/msi/database.c @@ -409,23 +409,44 @@ static LPWSTR msi_build_createsql_column return columns; } -static LPWSTR msi_build_createsql_postlude(LPWSTR primary_key) +static LPWSTR msi_build_createsql_postlude(LPWSTR *primary_keys, DWORD num_keys) { - LPWSTR postlude; - DWORD size; + LPWSTR postlude, keys, ptr; + DWORD size, key_size, i; + + static const WCHAR key_fmt[] = {'`','%','s','`',',',' ',0}; + static const WCHAR postlude_fmt[] = {'P','R','I','M','A','R','Y',' ','K','E','Y',' ','%','s',')',' ','H','O','L','D',0}; + + for (i = 0, size = 1; i < num_keys; i++) + size += lstrlenW(key_fmt) + lstrlenW(primary_keys[i]) - 2; + + keys = msi_alloc(size * sizeof(WCHAR)); + if (!keys) + return NULL; + + for (i = 0, ptr = keys; i < num_keys; i++) + { + key_size = lstrlenW(key_fmt) + lstrlenW(primary_keys[i]) -2; + sprintfW(ptr, key_fmt, primary_keys[i]); + ptr += key_size; + } - static const WCHAR postlude_fmt[] = {'P','R','I','M','A','R','Y',' ','K','E','Y',' ','`','%','s','`',')',' ','H','O','L','D',0}; + /* remove final ', ' */ + *(ptr - 2) = '\0'; - size = sizeof(postlude_fmt) + lstrlenW(primary_key) - 2; + size = lstrlenW(postlude_fmt) + size - 1; postlude = msi_alloc(size * sizeof(WCHAR)); if (!postlude) - return NULL; + goto done; + + sprintfW(postlude, postlude_fmt, keys); - sprintfW(postlude, postlude_fmt, primary_key); +done: + msi_free(keys); return postlude; } -static UINT msi_add_table_to_db(MSIDATABASE *db, LPWSTR *columns, LPWSTR *types, LPWSTR *labels, DWORD num_columns) +static UINT msi_add_table_to_db(MSIDATABASE *db, LPWSTR *columns, LPWSTR *types, LPWSTR *labels, DWORD num_labels, DWORD num_columns) { UINT r; DWORD size; @@ -435,7 +456,7 @@ static UINT msi_add_table_to_db(MSIDATAB prelude = msi_build_createsql_prelude(labels[0]); columns_sql = msi_build_createsql_columns(columns, types, num_columns); - postlude = msi_build_createsql_postlude(labels[1]); + postlude = msi_build_createsql_postlude(labels + 1, num_labels - 1); /* skip over table name */ if (!prelude || !columns_sql || !postlude) return ERROR_OUTOFMEMORY; @@ -614,6 +635,7 @@ UINT MSI_DatabaseImport(MSIDATABASE *db, { UINT r; DWORD len, i; + DWORD num_labels; DWORD num_columns, num_records = 0; LPWSTR *columns, *types, *labels; LPWSTR path, ptr, data; @@ -640,7 +662,7 @@ UINT MSI_DatabaseImport(MSIDATABASE *db, ptr = data; msi_parse_line( &ptr, &columns, &num_columns ); msi_parse_line( &ptr, &types, NULL ); - msi_parse_line( &ptr, &labels, NULL ); + msi_parse_line( &ptr, &labels, &num_labels ); records = msi_alloc(sizeof(LPWSTR *)); if (!records) @@ -657,7 +679,7 @@ UINT MSI_DatabaseImport(MSIDATABASE *db, return ERROR_OUTOFMEMORY; } - r = msi_add_table_to_db( db, columns, types, labels, num_columns ); + r = msi_add_table_to_db( db, columns, types, labels, num_labels, num_columns ); if (r != ERROR_SUCCESS) goto done; diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 5f5da33..9a39451 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -1365,6 +1365,12 @@ static const CHAR test_data[] = "FirstPr "TestTable\tFirstPrimaryColumn\n" "stringage\t5\t2\t\t2147483640\t-2147483640\tanother string\tlocalizable\tduh\n"; +static const CHAR two_primary[] = "PrimaryOne\tPrimaryTwo\n" + "s255\ts255\n" + "TwoPrimary\tPrimaryOne\tPrimaryTwo\n" + "papaya\tleaf\n" + "papaya\tflower\n"; + static void write_file(const CHAR *filename, const char *data, int data_size) { DWORD size; @@ -1402,6 +1408,9 @@ static void test_msiimport(void) r = add_table_to_db(hdb, test_data); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + r = add_table_to_db(hdb, two_primary); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + query = "SELECT * FROM `TestTable`"; r = MsiDatabaseOpenView(hdb, query, &view); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); @@ -1465,6 +1474,51 @@ static void test_msiimport(void) MsiCloseHandle(rec); MsiCloseHandle(view); + + query = "SELECT * FROM `TwoPrimary`"; + r = MsiDatabaseOpenView(hdb, query, &view); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + r = MsiViewGetColumnInfo(view, MSICOLINFO_NAMES, &rec); + count = MsiRecordGetFieldCount(rec); + ok(count == 2, "Expected 2, got %d\n", count); + ok(check_record(rec, 1, "PrimaryOne"), "Expected PrimaryOne\n"); + ok(check_record(rec, 2, "PrimaryTwo"), "Expected PrimaryTwo\n"); + + MsiCloseHandle(rec); + + r = MsiViewGetColumnInfo(view, MSICOLINFO_TYPES, &rec); + count = MsiRecordGetFieldCount(rec); + ok(count == 2, "Expected 2, got %d\n", count); + ok(check_record(rec, 1, "s255"), "Expected s255\n"); + ok(check_record(rec, 2, "s255"), "Expected s255\n"); + + r = MsiViewExecute(view, 0); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + r = MsiViewFetch(view, &rec); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + ok(check_record(rec, 1, "papaya"), "Expected 'papaya'\n"); + ok(check_record(rec, 2, "leaf"), "Expected 'leaf'\n"); + + MsiCloseHandle(rec); + + r = MsiViewFetch(view, &rec); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + ok(check_record(rec, 1, "papaya"), "Expected 'papaya'\n"); + ok(check_record(rec, 2, "flower"), "Expected 'flower'\n"); + + MsiCloseHandle(rec); + + r = MsiViewFetch(view, &rec); + ok(r == ERROR_NO_MORE_ITEMS, "Expected ERROR_NO_MORE_ITEMS, got %d\n", r); + + r = MsiViewClose(view); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + MsiCloseHandle(view); MsiCloseHandle(hdb); DeleteFileA(msifile); }
1
0
0
0
James Hawkins : tools/wine.inf: Add the ProgramFilesPath registry entry.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 463cec6af69a07adb59de376427bbb2079099293 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=463cec6af69a07adb59de3764…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Oct 18 16:23:45 2006 -0700 tools/wine.inf: Add the ProgramFilesPath registry entry. --- tools/wine.inf | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/wine.inf b/tools/wine.inf index e784385..d539ea8 100644 --- a/tools/wine.inf +++ b/tools/wine.inf @@ -157,6 +157,7 @@ HKLM,%CurrentVersion%,"CommonFilesDir",, HKLM,%CurrentVersion%,"FirstInstallDateTime",1,21,81,7c,23 HKLM,%CurrentVersion%,"ProductId",,"12345-oem-0000001-54321" HKLM,%CurrentVersion%,"ProgramFilesDir",,"%16422%" +HKLM,%CurrentVersion%,"ProgramFilesPath",0x20000,"%%ProgramFiles%%" HKLM,%CurrentVersion%,"RegisteredOrganization",2,"Change preferred organization in ~/.wine/system.reg" HKLM,%CurrentVersion%,"RegisteredOwner",2,"Change preferred owner in ~/.wine/system.reg" HKLM,%CurrentVersion%\Controls Folder\PowerCfg,"DiskSpinDownMax",,"3600"
1
0
0
0
James Hawkins : msi: Only initialize a component' s state if it is linked with a feature.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 929395c0f0b7dbd1978adfea5079445228b6b7e8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=929395c0f0b7dbd1978adfea5…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Oct 19 15:51:33 2006 -0700 msi: Only initialize a component's state if it is linked with a feature. --- dlls/msi/action.c | 58 +++++++++++++++++++-------------------------- dlls/msi/tests/install.c | 11 +++++--- dlls/msi/tests/package.c | 35 +++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 37 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index e81fcb7..8d79028 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -1792,6 +1792,31 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *pa { component = cl->component; + switch (component->Attributes) + { + case msidbComponentAttributesLocalOnly: + component->Action = INSTALLSTATE_LOCAL; + component->ActionRequest = INSTALLSTATE_LOCAL; + break; + case msidbComponentAttributesSourceOnly: + component->Action = INSTALLSTATE_SOURCE; + component->ActionRequest = INSTALLSTATE_SOURCE; + break; + case msidbComponentAttributesOptional: + component->Action = INSTALLSTATE_DEFAULT; + component->ActionRequest = INSTALLSTATE_DEFAULT; + break; + default: + component->Action = INSTALLSTATE_LOCAL; + component->ActionRequest = INSTALLSTATE_LOCAL; + } + + if (component->ForceLocalState) + { + component->Action = INSTALLSTATE_LOCAL; + component->ActionRequest = INSTALLSTATE_LOCAL; + } + if (!component->Enabled) { component->Action = INSTALLSTATE_UNKNOWN; @@ -1907,33 +1932,6 @@ static UINT ITERATE_CostFinalizeConditio return ERROR_SUCCESS; } -static void load_all_component_states(MSIPACKAGE *package) -{ - MSICOMPONENT *comp; - - LIST_FOR_EACH_ENTRY(comp, &package->components, MSICOMPONENT, entry) - { - switch (comp->Attributes) - { - case msidbComponentAttributesLocalOnly: - comp->Action = INSTALLSTATE_LOCAL; - comp->ActionRequest = INSTALLSTATE_LOCAL; - break; - case msidbComponentAttributesSourceOnly: - comp->Action = INSTALLSTATE_SOURCE; - comp->ActionRequest = INSTALLSTATE_SOURCE; - break; - case msidbComponentAttributesOptional: - comp->Action = INSTALLSTATE_DEFAULT; - comp->ActionRequest = INSTALLSTATE_DEFAULT; - break; - default: - comp->Action = INSTALLSTATE_LOCAL; - comp->ActionRequest = INSTALLSTATE_LOCAL; - } - } -} - /* * A lot is done in this function aside from just the costing. * The costing needs to be implemented at some point but for now I am going @@ -1972,8 +1970,6 @@ static UINT ACTION_CostFinalize(MSIPACKA msiobj_release(&view->hdr); } - load_all_component_states(package); - TRACE("File calculations\n"); LIST_FOR_EACH_ENTRY( file, &package->files, MSIFILE, entry ) @@ -1985,11 +1981,7 @@ static UINT ACTION_CostFinalize(MSIPACKA continue; if (file->IsCompressed) - { comp->ForceLocalState = TRUE; - comp->Action = INSTALLSTATE_LOCAL; - comp->ActionRequest = INSTALLSTATE_LOCAL; - } /* calculate target */ p = resolve_folder(package, comp->Directory, FALSE, FALSE, NULL); diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 3696537..fe856f7 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -664,10 +664,7 @@ static void test_MsiInstallProduct(void) size = MAX_PATH; type = REG_SZ; res = RegQueryValueExA(hkey, "blah", NULL, &type, (LPBYTE)path, &size); - todo_wine - { - ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res); - } + ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res); size = sizeof(num); type = REG_DWORD; @@ -690,6 +687,7 @@ static void test_MsiInstallProduct(void) static void test_MsiSetComponentState(void) { + INSTALLSTATE installed, action; MSIHANDLE package; char path[MAX_PATH]; UINT r; @@ -714,6 +712,11 @@ static void test_MsiSetComponentState(vo r = MsiDoAction(package, "CostFinalize"); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); + r = MsiGetComponentState(package, "dangler", &installed, &action); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); + ok(installed == INSTALLSTATE_ABSENT, "Expected INSTALLSTATE_ABSENT, got %d\n", installed); + ok(action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action); + r = MsiSetComponentState(package, "dangler", INSTALLSTATE_SOURCE); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index f507451..feac142 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -1585,6 +1585,10 @@ static void test_states(void) r = add_component_entry( hdb, "'eta', '{DD89003F-0DD4-41B8-81C0-3411A7DA2695}', 'TARGETDIR', 1, '', 'eta_file'" ); ok( r == ERROR_SUCCESS, "cannot add component: %d\n", r ); + /* no feature parent:msidbComponentAttributesLocalOnly */ + r = add_component_entry( hdb, "'kappa', '{D6B93DC3-8DA5-4769-9888-42BFE156BB8B}', 'TARGETDIR', 1, '', 'kappa_file'" ); + ok( r == ERROR_SUCCESS, "cannot add component: %d\n", r ); + r = create_feature_components_table( hdb ); ok( r == ERROR_SUCCESS, "cannot create FeatureComponents table: %d\n", r ); @@ -1652,6 +1656,9 @@ static void test_states(void) r = add_file_entry( hdb, "'eta_file', 'eta', 'eta.txt', 0, '', '1033', 16384, 1" ); ok( r == ERROR_SUCCESS, "cannot add file: %d\n", r); + r = add_file_entry( hdb, "'kappa_file', 'kappa', 'kappa.txt', 0, '', '1033', 8192, 1" ); + ok( r == ERROR_SUCCESS, "cannot add file: %d\n", r); + hpkg = package_from_db( hdb ); ok( hpkg, "failed to create package\n"); @@ -1755,6 +1762,13 @@ static void test_states(void) ok( state == 0xdeadbee, "Expected 0xdeadbee, got %d\n", state); ok( action == 0xdeadbee, "Expected 0xdeadbee, got %d\n", action); + state = 0xdeadbee; + action = 0xdeadbee; + r = MsiGetComponentState(hpkg, "kappa", &state, &action); + ok( r == ERROR_UNKNOWN_COMPONENT, "Expected ERROR_UNKNOWN_COMPONENT, got %d\n", r ); + ok( state == 0xdeadbee, "Expected 0xdeadbee, got %d\n", state); + ok( action == 0xdeadbee, "Expected 0xdeadbee, got %d\n", action); + r = MsiDoAction( hpkg, "CostInitialize"); ok( r == ERROR_SUCCESS, "cost init failed\n"); @@ -1856,6 +1870,13 @@ static void test_states(void) ok( state == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", state); ok( action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action); + state = 0xdeadbee; + action = 0xdeadbee; + r = MsiGetComponentState(hpkg, "kappa", &state, &action); + ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r ); + ok( state == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", state); + ok( action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action); + r = MsiDoAction( hpkg, "FileCost"); ok( r == ERROR_SUCCESS, "file cost failed\n"); @@ -1957,6 +1978,13 @@ static void test_states(void) ok( state == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", state); ok( action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action); + state = 0xdeadbee; + action = 0xdeadbee; + r = MsiGetComponentState(hpkg, "kappa", &state, &action); + ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r ); + ok( state == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", state); + ok( action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action); + r = MsiDoAction( hpkg, "CostFinalize"); ok( r == ERROR_SUCCESS, "cost finalize failed: %d\n", r); @@ -2057,6 +2085,13 @@ static void test_states(void) ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r ); ok( state == INSTALLSTATE_ABSENT, "Expected INSTALLSTATE_ABSENT, got %d\n", state); ok( action == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", action); + + state = 0xdeadbee; + action = 0xdeadbee; + r = MsiGetComponentState(hpkg, "kappa", &state, &action); + ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r ); + ok( state == INSTALLSTATE_ABSENT, "Expected INSTALLSTATE_ABSENT, got %d\n", state); + ok( action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action); MsiCloseHandle( hpkg ); DeleteFileA( msifile );
1
0
0
0
James Hawkins : msi: Use the ProgramFileDir reg value instead of ProgramFilesPath.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 7330a03200d7b91150a21ed6bdf41c64548cf2bd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7330a03200d7b91150a21ed6b…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Oct 19 15:50:35 2006 -0700 msi: Use the ProgramFileDir reg value instead of ProgramFilesPath. --- dlls/msi/tests/install.c | 32 +++++++++++++------------------- 1 files changed, 13 insertions(+), 19 deletions(-) diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 0c43dee..3696537 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -465,7 +465,6 @@ static BOOL init_function_pointers(void) static BOOL get_program_files_dir(LPSTR buf) { HKEY hkey; - CHAR temp[MAX_PATH]; DWORD type = REG_EXPAND_SZ, size; if (RegOpenKey(HKEY_LOCAL_MACHINE, @@ -473,11 +472,9 @@ static BOOL get_program_files_dir(LPSTR return FALSE; size = MAX_PATH; - if (RegQueryValueEx(hkey, "ProgramFilesPath", 0, &type, (LPBYTE)temp, &size)) + if (RegQueryValueEx(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size)) return FALSE; - ExpandEnvironmentStrings(temp, buf, MAX_PATH); - RegCloseKey(hkey); return TRUE; } @@ -642,21 +639,18 @@ static void test_MsiInstallProduct(void) r = MsiInstallProductA(msifile, NULL); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); - todo_wine - { - ok(delete_pf("msitest\\cabout\\new\\five.txt", TRUE), "File not installed\n"); - ok(delete_pf("msitest\\cabout\\new", FALSE), "File not installed\n"); - ok(delete_pf("msitest\\cabout\\four.txt", TRUE), "File not installed\n"); - ok(delete_pf("msitest\\cabout", FALSE), "File not installed\n"); - ok(delete_pf("msitest\\changed\\three.txt", TRUE), "File not installed\n"); - ok(delete_pf("msitest\\changed", FALSE), "File not installed\n"); - ok(delete_pf("msitest\\first\\two.txt", TRUE), "File not installed\n"); - ok(delete_pf("msitest\\first", FALSE), "File not installed\n"); - ok(delete_pf("msitest\\one.txt", TRUE), "File not installed\n"); - ok(delete_pf("msitest\\filename", TRUE), "File not installed\n"); - ok(delete_pf("msitest\\service.exe", TRUE), "File not installed\n"); - ok(delete_pf("msitest", FALSE), "File not installed\n"); - } + ok(delete_pf("msitest\\cabout\\new\\five.txt", TRUE), "File not installed\n"); + ok(delete_pf("msitest\\cabout\\new", FALSE), "File not installed\n"); + ok(delete_pf("msitest\\cabout\\four.txt", TRUE), "File not installed\n"); + ok(delete_pf("msitest\\cabout", FALSE), "File not installed\n"); + ok(delete_pf("msitest\\changed\\three.txt", TRUE), "File not installed\n"); + ok(delete_pf("msitest\\changed", FALSE), "File not installed\n"); + ok(delete_pf("msitest\\first\\two.txt", TRUE), "File not installed\n"); + ok(delete_pf("msitest\\first", FALSE), "File not installed\n"); + ok(delete_pf("msitest\\one.txt", TRUE), "File not installed\n"); + ok(delete_pf("msitest\\filename", TRUE), "File not installed\n"); + ok(delete_pf("msitest\\service.exe", TRUE), "File not installed\n"); + ok(delete_pf("msitest", FALSE), "File not installed\n"); res = RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wine\\msitest", &hkey); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
1
0
0
0
James Hawkins : msi: Implement the InstallServices action.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 9bc12ade13d6ac69ecce7a40e5682516a36c2f1b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9bc12ade13d6ac69ecce7a40e…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Oct 19 15:49:54 2006 -0700 msi: Implement the InstallServices action. --- dlls/msi/action.c | 102 ++++++++++++++++++++++++++++++++++++++++++--- dlls/msi/tests/install.c | 10 +---- 2 files changed, 97 insertions(+), 15 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index d893af2..e81fcb7 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -34,6 +34,7 @@ #include "windef.h" #include "winbase.h" #include "winerror.h" #include "winreg.h" +#include "winsvc.h" #include "wine/debug.h" #include "msidefs.h" #include "msipriv.h" @@ -4075,6 +4076,100 @@ static UINT ACTION_PublishComponents(MSI return rc; } +static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param) +{ + MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIRECORD *row; + MSIFILE *file; + SC_HANDLE hscm, service = NULL; + LPCWSTR name, disp, comp, depends, pass; + LPCWSTR load_order, serv_name, key; + DWORD serv_type, start_type; + DWORD err_control; + + static const WCHAR query[] = + {'S','E','L','E','C','T',' ','*',' ','F','R', 'O','M',' ', + '`','C','o','m','p','o','n','e','n','t','`',' ', + 'W','H','E','R','E',' ', + '`','C','o','m','p','o','n','e','n','t','`',' ', + '=','\'','%','s','\'',0}; + + hscm = OpenSCManagerW(NULL, SERVICES_ACTIVE_DATABASEW, GENERIC_WRITE); + if (!hscm) + { + ERR("Failed to open the SC Manager!\n"); + goto done; + } + + start_type = MSI_RecordGetInteger(rec, 5); + if (start_type == SERVICE_BOOT_START || start_type == SERVICE_SYSTEM_START) + goto done; + + depends = MSI_RecordGetString(rec, 8); + if (depends && *depends) + FIXME("Dependency list unhandled!\n"); + + name = MSI_RecordGetString(rec, 2); + disp = MSI_RecordGetString(rec, 3); + serv_type = MSI_RecordGetInteger(rec, 4); + err_control = MSI_RecordGetInteger(rec, 6); + load_order = MSI_RecordGetString(rec, 7); + serv_name = MSI_RecordGetString(rec, 9); + pass = MSI_RecordGetString(rec, 10); + comp = MSI_RecordGetString(rec, 12); + + /* fetch the service path */ + row = MSI_QueryGetRecord(package->db, query, comp); + if (!row) + { + ERR("Control query failed!\n"); + goto done; + } + + key = MSI_RecordGetString(row, 6); + msiobj_release(&row->hdr); + + file = get_loaded_file(package, key); + if (!file) + { + ERR("Failed to load the service file\n"); + goto done; + } + + service = CreateServiceW(hscm, name, disp, GENERIC_ALL, serv_type, + start_type, err_control, file->TargetPath, + load_order, NULL, NULL, serv_name, pass); + if (!service) + { + if (GetLastError() != ERROR_SERVICE_EXISTS) + ERR("Failed to create service %s: %d\n", debugstr_w(name), GetLastError()); + } + +done: + CloseServiceHandle(service); + CloseServiceHandle(hscm); + + return ERROR_SUCCESS; +} + +static UINT ACTION_InstallServices( MSIPACKAGE *package ) +{ + UINT rc; + MSIQUERY * view; + static const WCHAR ExecSeqQuery[] = + {'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ', + 'S','e','r','v','i','c','e','I','n','s','t','a','l','l',0}; + + rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view); + if (rc != ERROR_SUCCESS) + return ERROR_SUCCESS; + + rc = MSI_IterateRecords(view, NULL, ITERATE_InstallService, package); + msiobj_release(&view->hdr); + + return rc; +} + static UINT msi_unimplemented_action_stub( MSIPACKAGE *package, LPCSTR action, LPCWSTR table ) { @@ -4149,13 +4244,6 @@ static UINT ACTION_SelfUnregModules( MSI return msi_unimplemented_action_stub( package, "SelfUnregModules", table ); } -static UINT ACTION_InstallServices( MSIPACKAGE *package ) -{ - static const WCHAR table[] = { - 'S','e','r','v','i','c','e','I','n','s','t','a','l','l',0 }; - return msi_unimplemented_action_stub( package, "InstallServices", table ); -} - static UINT ACTION_StartServices( MSIPACKAGE *package ) { static const WCHAR table[] = { diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 36d9240..0c43dee 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -622,16 +622,10 @@ static void check_service_is_installed(v ok(scm != NULL, "Failed to open the SC Manager\n"); service = OpenService(scm, "TestService", SC_MANAGER_ALL_ACCESS); - todo_wine - { - ok(service != NULL, "Failed to open TestService\n"); - } + ok(service != NULL, "Failed to open TestService\n"); res = DeleteService(service); - todo_wine - { - ok(res, "Failed to delete TestService\n"); - } + ok(res, "Failed to delete TestService\n"); } static void test_MsiInstallProduct(void)
1
0
0
0
Detlef Riekenberg : localspl: Implement InitializePrintMonitor.
by Alexandre Julliard
20 Oct '06
20 Oct '06
Module: wine Branch: master Commit: 1f766011ca0e5714082e27296513c9a3c70bf437 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1f766011ca0e5714082e27296…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Thu Oct 19 23:48:29 2006 +0200 localspl: Implement InitializePrintMonitor. --- dlls/localspl/localmon.c | 19 +++++++++++++------ dlls/localspl/localspl_main.c | 1 - 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c index 6665585..1af54c5 100644 --- a/dlls/localspl/localmon.c +++ b/dlls/localspl/localmon.c @@ -34,7 +34,6 @@ #include "winnls.h" #include "winspool.h" #include "ddk/winsplp.h" -#include "wine/unicode.h" #include "wine/debug.h" @@ -53,18 +52,26 @@ WINE_DEFAULT_DEBUG_CHANNEL(localspl); * Failure: NULL * * NOTES - * Native localspl.dll fails, when the Section "Ports" is missing in "win.ini". + * The fixed location "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Ports" + * is used to store the Ports (IniFileMapping from "win.ini", Section "Ports"). + * Native localspl.dll fails, when no valid Port-Entry is present. * */ LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot) { - FIXME("(%s) stub\n", debugstr_w(regroot)); + static MONITOREX mymonitorex = + { + sizeof(MONITOREX) - sizeof(DWORD) + }; + + TRACE("(%s)\n", debugstr_w(regroot)); + /* Parameter "regroot" is ignored on NT4.0 (localmon.dll) */ if (!regroot || !regroot[0]) { SetLastError(ERROR_INVALID_PARAMETER); return NULL; } - - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return NULL; + TRACE("=> %p\n", &mymonitorex); + /* Native windows returns always the same pointer on success */ + return &mymonitorex; } diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localspl_main.c index b1de446..b9ce877 100644 --- a/dlls/localspl/localspl_main.c +++ b/dlls/localspl/localspl_main.c @@ -34,7 +34,6 @@ #include "winnls.h" #include "winspool.h" #include "ddk/winsplp.h" -#include "wine/unicode.h" #include "wine/debug.h"
1
0
0
0
← Newer
1
...
30
31
32
33
34
35
36
...
104
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
Results per page:
10
25
50
100
200