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
March 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
844 discussions
Start a n
N
ew thread
James Hawkins : setupapi: Correct the Inf output position.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: 672952d2b6abf525d3ccd73b68ee418f51f8eae2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=672952d2b6abf525d3ccd73b6…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Mar 28 01:56:39 2007 -0500 setupapi: Correct the Inf output position. --- dlls/setupapi/misc.c | 2 +- dlls/setupapi/tests/misc.c | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c index eb3c3a1..4c7786f 100644 --- a/dlls/setupapi/misc.c +++ b/dlls/setupapi/misc.c @@ -978,7 +978,7 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location, } } - if (component) *component = p; + if (component) *component = p + 1; if (required_size) *required_size = size; return ret; diff --git a/dlls/setupapi/tests/misc.c b/dlls/setupapi/tests/misc.c index 27dcc77..d566816 100644 --- a/dlls/setupapi/tests/misc.c +++ b/dlls/setupapi/tests/misc.c @@ -92,7 +92,7 @@ static BOOL check_format(LPSTR path, LPSTR inf) GetWindowsDirectory(check, MAX_PATH); lstrcat(check, format); - res = !strncmp(check, path, lstrlen(check)) && + res = !strncasecmp(check, path, lstrlen(check)) && path[lstrlen(check)] != '\\'; return (!inf) ? res : res && (inf == path + lstrlen(check) - 3); @@ -196,10 +196,7 @@ static void test_SetupCopyOEMInf(void) ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); ok(lstrlen(dest) != 0, "Expected a non-zero length string\n"); ok(file_exists(dest), "Expected destination inf to exist\n"); - todo_wine - { - ok(check_format(dest, NULL), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); - } + ok(check_format(dest, NULL), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); ok(file_exists(path), "Expected source inf to exist\n"); lstrcpy(dest_save, dest); @@ -227,10 +224,7 @@ static void test_SetupCopyOEMInf(void) ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); ok(lstrlen(dest) + 1 == size, "Expected sizes to match, got (%d, %d)\n", lstrlen(dest), size); ok(file_exists(dest), "Expected destination inf to exist\n"); - todo_wine - { - ok(check_format(dest, NULL), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); - } + ok(check_format(dest, NULL), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); ok(file_exists(path), "Expected source inf to exist\n"); ok(size == lstrlen(dest_save) + 1, "Expected size to be lstrlen(dest_save) + 1\n"); @@ -241,10 +235,7 @@ static void test_SetupCopyOEMInf(void) ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); ok(lstrlen(dest) + 1 == size, "Expected sizes to match, got (%d, %d)\n", lstrlen(dest), size); ok(file_exists(dest), "Expected destination inf to exist\n"); - todo_wine - { - ok(check_format(dest, inf), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); - } + ok(check_format(dest, inf), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); ok(file_exists(path), "Expected source inf to exist\n"); ok(size == lstrlen(dest_save) + 1, "Expected size to be lstrlen(dest_save) + 1\n");
1
0
0
0
James Hawkins : setupapi: The Inf file should be copied regardless of the destination buffer, with tests.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: ff326fd0ffd4ad017634d6d068781d8a0736d4a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ff326fd0ffd4ad017634d6d06…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Mar 28 01:55:46 2007 -0500 setupapi: The Inf file should be copied regardless of the destination buffer, with tests. --- dlls/setupapi/misc.c | 26 ++++++++++-------- dlls/setupapi/tests/misc.c | 61 +++++++++++++++++++++++-------------------- 2 files changed, 47 insertions(+), 40 deletions(-) diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c index 8257828..eb3c3a1 100644 --- a/dlls/setupapi/misc.c +++ b/dlls/setupapi/misc.c @@ -887,20 +887,21 @@ BOOL WINAPI SetupCopyOEMInfA( PCSTR source, PCSTR location, { BOOL ret = FALSE; LPWSTR destW = NULL, sourceW = NULL, locationW = NULL; - INT size = MAX_PATH; + DWORD size; TRACE("%s, %s, %d, %d, %p, %d, %p, %p\n", debugstr_a(source), debugstr_a(location), media_type, style, dest, buffer_size, required_size, component); - if (dest && !(destW = MyMalloc( MAX_PATH * sizeof(WCHAR) ))) return FALSE; + if (dest && !(destW = MyMalloc( buffer_size * sizeof(WCHAR) ))) return FALSE; if (source && !(sourceW = strdupAtoW( source ))) goto done; if (location && !(locationW = strdupAtoW( location ))) goto done; - if (!(ret = SetupCopyOEMInfW( sourceW, locationW, media_type, style, destW, size, NULL, NULL ))) + if (!(ret = SetupCopyOEMInfW( sourceW, locationW, media_type, style, destW, + buffer_size, &size, NULL ))) + { + if (required_size) *required_size = size; goto done; - - size = WideCharToMultiByte( CP_ACP, 0, destW, -1, NULL, 0, NULL, NULL ); - if (required_size) *required_size = size; + } if (dest) { @@ -957,17 +958,18 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location, if ((p = strrchrW( source, '\\' ))) strcatW( target, p + 1 ); + if (!(ret = CopyFileW( source, target, (style & SP_COPY_NOOVERWRITE) != 0 ))) + return ret; + + if (style & SP_COPY_DELETESOURCE) + DeleteFileW( source ); + size = strlenW( target ) + 1; if (dest) { if (buffer_size >= size) { - /* FIXME: honour style flags */ - if ((ret = CopyFileW( source, target, (style & SP_COPY_NOOVERWRITE) != 0 ))) - { - if (style & SP_COPY_DELETESOURCE) DeleteFileW( source ); - strcpyW( dest, target ); - } + strcpyW( dest, target ); } else { diff --git a/dlls/setupapi/tests/misc.c b/dlls/setupapi/tests/misc.c index ea11a6c..27dcc77 100644 --- a/dlls/setupapi/tests/misc.c +++ b/dlls/setupapi/tests/misc.c @@ -102,7 +102,7 @@ static void test_SetupCopyOEMInf(void) { CHAR toolong[MAX_PATH * 2]; CHAR path[MAX_PATH], dest[MAX_PATH]; - CHAR tmpfile[MAX_PATH]; + CHAR tmpfile[MAX_PATH], dest_save[MAX_PATH]; LPSTR inf; DWORD size; BOOL res; @@ -134,11 +134,8 @@ static void test_SetupCopyOEMInf(void) SetLastError(0xdeadbeef); res = SetupCopyOEMInf(path, NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); ok(res == FALSE, "Expected FALSE, got %d\n", res); - todo_wine - { - ok(GetLastError() == ERROR_FILE_NOT_FOUND, - "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); - } + ok(GetLastError() == ERROR_FILE_NOT_FOUND, + "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); /* try a long SourceInfFileName */ memset(toolong, 'a', MAX_PATH * 2); @@ -164,11 +161,8 @@ static void test_SetupCopyOEMInf(void) SetLastError(0xdeadbeef); res = SetupCopyOEMInf(path, NULL, SPOST_NONE, SP_COPY_REPLACEONLY, NULL, 0, NULL, NULL); ok(res == FALSE, "Expected FALSE, got %d\n", res); - todo_wine - { - ok(GetLastError() == ERROR_FILE_NOT_FOUND, - "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); - } + ok(GetLastError() == ERROR_FILE_NOT_FOUND, + "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); ok(file_exists(tmpfile), "Expected source inf to exist\n"); /* try an absolute SourceInfFileName, without DestinationInfFileName */ @@ -177,32 +171,23 @@ static void test_SetupCopyOEMInf(void) lstrcat(path, tmpfile); SetLastError(0xdeadbeef); res = SetupCopyOEMInf(path, NULL, SPOST_NONE, 0, NULL, 0, NULL, NULL); - todo_wine - { - ok(res == TRUE, "Expected TRUE, got %d\n", res); - ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); - } + ok(res == TRUE, "Expected TRUE, got %d\n", res); + ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); ok(file_exists(path), "Expected source inf to exist\n"); /* try SP_COPY_REPLACEONLY, dest exists */ SetLastError(0xdeadbeef); res = SetupCopyOEMInf(path, NULL, SPOST_NONE, SP_COPY_REPLACEONLY, NULL, 0, NULL, NULL); - todo_wine - { - ok(res == TRUE, "Expected TRUE, got %d\n", res); - ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); - } + ok(res == TRUE, "Expected TRUE, got %d\n", res); + ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); ok(file_exists(path), "Expected source inf to exist\n"); /* try SP_COPY_NOOVERWRITE */ SetLastError(0xdeadbeef); res = SetupCopyOEMInf(path, NULL, SPOST_NONE, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); ok(res == FALSE, "Expected FALSE, got %d\n", res); - todo_wine - { - ok(GetLastError() == ERROR_FILE_EXISTS, - "Expected ERROR_FILE_EXISTS, got %d\n", GetLastError()); - } + ok(GetLastError() == ERROR_FILE_EXISTS, + "Expected ERROR_FILE_EXISTS, got %d\n", GetLastError()); /* get the DestinationInfFileName */ SetLastError(0xdeadbeef); @@ -217,6 +202,24 @@ static void test_SetupCopyOEMInf(void) } ok(file_exists(path), "Expected source inf to exist\n"); + lstrcpy(dest_save, dest); + DeleteFile(dest_save); + + /* get the DestinationInfFileName, DestinationInfFileNameSize is too small + * - inf is still copied + */ + lstrcpy(dest, "aaa"); + size = 0; + SetLastError(0xdeadbeef); + res = SetupCopyOEMInf(path, NULL, SPOST_NONE, 0, dest, 5, &size, NULL); + ok(res == FALSE, "Expected FALSE, got %d\n", res); + ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, + "Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError()); + ok(file_exists(path), "Expected source inf to exist\n"); + ok(file_exists(dest_save), "Expected dest inf to exist\n"); + ok(!lstrcmp(dest, "aaa"), "Expected dest to be unchanged\n"); + ok(size == lstrlen(dest_save) + 1, "Expected size to be lstrlen(dest_save) + 1\n"); + /* get the DestinationInfFileName and DestinationInfFileNameSize */ SetLastError(0xdeadbeef); res = SetupCopyOEMInf(path, NULL, SPOST_NONE, 0, dest, MAX_PATH, &size, NULL); @@ -229,6 +232,7 @@ static void test_SetupCopyOEMInf(void) ok(check_format(dest, NULL), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); } ok(file_exists(path), "Expected source inf to exist\n"); + ok(size == lstrlen(dest_save) + 1, "Expected size to be lstrlen(dest_save) + 1\n"); /* get the DestinationInfFileName, DestinationInfFileNameSize, and DestinationInfFileNameComponent */ SetLastError(0xdeadbeef); @@ -242,15 +246,16 @@ static void test_SetupCopyOEMInf(void) ok(check_format(dest, inf), "Expected %%windir%%\\inf\\OEMx.inf, got %s\n", dest); } ok(file_exists(path), "Expected source inf to exist\n"); + ok(size == lstrlen(dest_save) + 1, "Expected size to be lstrlen(dest_save) + 1\n"); /* try SP_COPY_DELETESOURCE */ SetLastError(0xdeadbeef); res = SetupCopyOEMInf(path, NULL, SPOST_NONE, SP_COPY_DELETESOURCE, NULL, 0, NULL, NULL); + ok(res == TRUE, "Expected TRUE, got %d\n", res); + ok(!file_exists(path), "Expected source inf to not exist\n"); todo_wine { - ok(res == TRUE, "Expected TRUE, got %d\n", res); ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError()); - ok(!file_exists(path), "Expected source inf to not exist\n"); } }
1
0
0
0
James Hawkins : setupapi: Don't allow relative paths in SetupCopyOEMInf.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: efa6591fff772c7fc88f3dd26500610f55d6b551 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=efa6591fff772c7fc88f3dd26…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Mar 28 01:53:57 2007 -0500 setupapi: Don't allow relative paths in SetupCopyOEMInf. --- dlls/setupapi/misc.c | 7 +++++++ dlls/setupapi/tests/misc.c | 32 ++++++++++++++++---------------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c index b1845b7..8257828 100644 --- a/dlls/setupapi/misc.c +++ b/dlls/setupapi/misc.c @@ -944,6 +944,13 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location, return FALSE; } + /* check for a relative path */ + if (!(*source == '\\' || (*source && source[1] == ':'))) + { + SetLastError(ERROR_FILE_NOT_FOUND); + return FALSE; + } + if (!GetWindowsDirectoryW( target, sizeof(target)/sizeof(WCHAR) )) return FALSE; strcatW( target, inf_oem ); diff --git a/dlls/setupapi/tests/misc.c b/dlls/setupapi/tests/misc.c index cee4823..ea11a6c 100644 --- a/dlls/setupapi/tests/misc.c +++ b/dlls/setupapi/tests/misc.c @@ -118,16 +118,22 @@ static void test_SetupCopyOEMInf(void) SetLastError(0xdeadbeef); res = SetupCopyOEMInf("", NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); ok(res == FALSE, "Expected FALSE, got %d\n", res); - todo_wine - { - ok(GetLastError() == ERROR_FILE_NOT_FOUND, - "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); - } + ok(GetLastError() == ERROR_FILE_NOT_FOUND, + "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); - /* try nonexistent SourceInfFileName */ + /* try a relative nonexistent SourceInfFileName */ SetLastError(0xdeadbeef); res = SetupCopyOEMInf("nonexistent", NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); ok(res == FALSE, "Expected FALSE, got %d\n", res); + ok(GetLastError() == ERROR_FILE_NOT_FOUND, + "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); + + /* try an absolute nonexistent SourceInfFileName */ + lstrcpy(path, CURR_DIR); + lstrcat(path, "\\nonexistent"); + SetLastError(0xdeadbeef); + res = SetupCopyOEMInf(path, NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); + ok(res == FALSE, "Expected FALSE, got %d\n", res); todo_wine { ok(GetLastError() == ERROR_FILE_NOT_FOUND, @@ -140,11 +146,8 @@ static void test_SetupCopyOEMInf(void) SetLastError(0xdeadbeef); res = SetupCopyOEMInf(toolong, NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); ok(res == FALSE, "Expected FALSE, got %d\n", res); - todo_wine - { - ok(GetLastError() == ERROR_FILE_NOT_FOUND, - "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); - } + ok(GetLastError() == ERROR_FILE_NOT_FOUND, + "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); get_temp_filename(tmpfile); create_inf_file(tmpfile); @@ -153,11 +156,8 @@ static void test_SetupCopyOEMInf(void) SetLastError(0xdeadbeef); res = SetupCopyOEMInf(tmpfile, NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); ok(res == FALSE, "Expected FALSE, got %d\n", res); - todo_wine - { - ok(GetLastError() == ERROR_FILE_NOT_FOUND, - "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); - } + ok(GetLastError() == ERROR_FILE_NOT_FOUND, + "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); ok(file_exists(tmpfile), "Expected tmpfile to exist\n"); /* try SP_COPY_REPLACEONLY, dest does not exist */
1
0
0
0
James Hawkins : setupapi: Handle the SP_COPY_NOOVERWRITE flag.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: 3e5f62b2d8d7353f890ca6e4fb27809c9f7dae8f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3e5f62b2d8d7353f890ca6e4f…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Mar 28 01:52:53 2007 -0500 setupapi: Handle the SP_COPY_NOOVERWRITE flag. --- dlls/setupapi/misc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c index f00cd2d..b1845b7 100644 --- a/dlls/setupapi/misc.c +++ b/dlls/setupapi/misc.c @@ -956,7 +956,7 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location, if (buffer_size >= size) { /* FIXME: honour style flags */ - if ((ret = CopyFileW( source, target, FALSE ))) + if ((ret = CopyFileW( source, target, (style & SP_COPY_NOOVERWRITE) != 0 ))) { if (style & SP_COPY_DELETESOURCE) DeleteFileW( source ); strcpyW( dest, target );
1
0
0
0
Marcin Grześkowiak : user32: Use charset of currently selected font in DrawTextExA.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: b5ee7aee23e886e8cde842cf05e2c742e8ca18f5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b5ee7aee23e886e8cde842cf0…
Author: Marcin Grześkowiak <mgrzeskowiak(a)tlen.pl> Date: Mon Mar 26 22:58:20 2007 +0200 user32: Use charset of currently selected font in DrawTextExA. --- dlls/user32/text.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/user32/text.c b/dlls/user32/text.c index e03130e..cd1cc75 100644 --- a/dlls/user32/text.c +++ b/dlls/user32/text.c @@ -1030,6 +1030,7 @@ INT WINAPI DrawTextExA( HDC hdc, LPSTR str, INT count, DWORD wcount; DWORD wmax; DWORD amax; + UINT cp; if (!count) return 0; if( !str || ((count == -1) && !(count = strlen(str)))) @@ -1041,7 +1042,8 @@ INT WINAPI DrawTextExA( HDC hdc, LPSTR str, INT count, } return 0; } - wcount = MultiByteToWideChar( CP_ACP, 0, str, count, NULL, 0 ); + cp = GdiGetCodePage( hdc ); + wcount = MultiByteToWideChar( cp, 0, str, count, NULL, 0 ); wmax = wcount; amax = count; if (flags & DT_MODIFYSTRING) @@ -1052,7 +1054,7 @@ INT WINAPI DrawTextExA( HDC hdc, LPSTR str, INT count, wstr = HeapAlloc(GetProcessHeap(), 0, wmax * sizeof(WCHAR)); if (wstr) { - MultiByteToWideChar( CP_ACP, 0, str, count, wstr, wcount ); + MultiByteToWideChar( cp, 0, str, count, wstr, wcount ); if (flags & DT_MODIFYSTRING) for (i=4, p=wstr+wcount; i--; p++) *p=0xFFFE; /* Initialise the extra characters so that we can see which ones @@ -1066,7 +1068,7 @@ INT WINAPI DrawTextExA( HDC hdc, LPSTR str, INT count, * and so we need to measure it ourselves. */ for (i=4, p=wstr+wcount; i-- && *p != 0xFFFE; p++) wcount++; - WideCharToMultiByte( CP_ACP, 0, wstr, wcount, str, amax, NULL, NULL ); + WideCharToMultiByte( cp, 0, wstr, wcount, str, amax, NULL, NULL ); } HeapFree(GetProcessHeap(), 0, wstr); }
1
0
0
0
Jan Zerebecki : wined3d: Print lastpixel state fixme only once.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: 09e7791cbad79f0cbcb7db9d84ac6b98beee396e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=09e7791cbad79f0cbcb7db9d8…
Author: Jan Zerebecki <jan.wine(a)zerebecki.de> Date: Tue Mar 27 09:27:52 2007 +0200 wined3d: Print lastpixel state fixme only once. --- dlls/wined3d/state.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index e4d10e2..8e563fb 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1254,7 +1254,13 @@ static void state_lastpixel(DWORD state, IWineD3DStateBlockImpl *stateblock, Win if(stateblock->renderState[WINED3DRS_LASTPIXEL]) { TRACE("Last Pixel Drawing Enabled\n"); } else { - FIXME("Last Pixel Drawing Disabled, not handled yet\n"); + static BOOL first = TRUE; + if(first) { + FIXME("Last Pixel Drawing Disabled, not handled yet\n"); + first = FALSE; + } else { + TRACE("Last Pixel Drawing Disabled, not handled yet\n"); + } } }
1
0
0
0
Francois Gouget : Remove unneeded checks on the GetModuleHandle() return value for cases where we are linked with the dll.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: d9e8a0f63e7331355634f81e42a2373564ce934c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d9e8a0f63e7331355634f81e4…
Author: Francois Gouget <fgouget(a)free.fr> Date: Wed Mar 28 10:00:28 2007 +0200 Remove unneeded checks on the GetModuleHandle() return value for cases where we are linked with the dll. --- dlls/advapi32/tests/crypt.c | 63 ++++++++++++++++++-------------------- dlls/advapi32/tests/crypt_md5.c | 2 +- dlls/advapi32/tests/lsa.c | 18 +++++------ dlls/advapi32/tests/security.c | 9 ++++-- dlls/comctl32/tests/dpa.c | 6 ---- dlls/comctl32/tests/mru.c | 2 - dlls/crypt32/tests/crl.c | 6 +--- dlls/ddraw/tests/d3d.c | 6 +--- dlls/ddraw/tests/refcount.c | 6 +--- dlls/kernel32/tests/locale.c | 16 ++++------ dlls/localspl/tests/localmon.c | 2 +- dlls/msi/tests/db.c | 2 - dlls/ntdll/tests/change.c | 12 +++++-- dlls/ntdll/tests/file.c | 18 ++++++----- dlls/ntdll/tests/om.c | 49 ++++++++++++++++-------------- dlls/ole32/tests/stg_prop.c | 10 ++---- dlls/shell32/tests/shlfileop.c | 4 +-- dlls/shell32/tests/shlfolder.c | 18 ++++------- dlls/shlwapi/tests/shreg.c | 7 +--- dlls/shlwapi/tests/string.c | 2 - dlls/user32/tests/input.c | 7 +++- dlls/user32/tests/monitor.c | 14 +++----- dlls/user32/tests/resource.c | 4 +-- 23 files changed, 123 insertions(+), 160 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=d9e8a0f63e7331355634f…
1
0
0
0
Francois Gouget : cmd: Spelling fix.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: ebfeb41e99d93b08c78f7ecd4f20667efef5bea4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ebfeb41e99d93b08c78f7ecd4…
Author: Francois Gouget <fgouget(a)free.fr> Date: Wed Mar 28 10:01:52 2007 +0200 cmd: Spelling fix. --- programs/cmd/directory.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/cmd/directory.c b/programs/cmd/directory.c index 076a6fe..79d755a 100644 --- a/programs/cmd/directory.c +++ b/programs/cmd/directory.c @@ -63,7 +63,7 @@ static ULONGLONG byte_total; static DISPLAYTIME dirTime; static DISPLAYORDER dirOrder; static BOOL orderReverse, orderGroupDirs, orderGroupDirsReverse, orderByCol; -static BOOL seperator; +static BOOL separator; static ULONG showattrs, attrsbits; /***************************************************************************** @@ -104,7 +104,7 @@ void WCMD_directory (void) { shortname = FALSE; usernames = FALSE; orderByCol = FALSE; - seperator = TRUE; + separator = TRUE; dirTime = Written; dirOrder = Name; orderReverse = FALSE; @@ -152,8 +152,8 @@ void WCMD_directory (void) { case 'D': if (negate) orderByCol = !orderByCol; else orderByCol = TRUE; break; - case 'C': if (negate) seperator = !seperator; - else seperator = TRUE; + case 'C': if (negate) separator = !separator; + else separator = TRUE; break; case 'T': p = p + 1; if (*p==':') p++; /* Skip optional : */ @@ -566,7 +566,7 @@ char * WCMD_filesize64 (ULONGLONG n) { p = buff; i = -3; do { - if (seperator && ((++i)%3 == 1)) *p++ = ','; + if (separator && ((++i)%3 == 1)) *p++ = ','; q = n / 10; r = n - (q * 10); *p++ = r + '0';
1
0
0
0
Francois Gouget : gdi32: Remove a space before '\n' in a trace.
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: 8d9fbef94f1d673590f30a39258e12e5e03dd613 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8d9fbef94f1d673590f30a392…
Author: Francois Gouget <fgouget(a)free.fr> Date: Wed Mar 28 10:01:23 2007 +0200 gdi32: Remove a space before '\n' in a trace. --- dlls/gdi32/path.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c index 59b4da9..af756b3 100644 --- a/dlls/gdi32/path.c +++ b/dlls/gdi32/path.c @@ -1845,7 +1845,7 @@ static BOOL PATH_WidenPath(DC *dc) break; case PT_BEZIERTO: /* should never happen because of the FlattenPath call */ - ERR("Should never happen \n"); + ERR("Should never happen\n"); break; default: ERR("Got path flag %c\n", pPath->pFlags[i]);
1
0
0
0
Francois Gouget : netapi32/tests: Add a missing '\n' to a trace().
by Alexandre Julliard
28 Mar '07
28 Mar '07
Module: wine Branch: master Commit: 45827fb404b5bb4e10decd9f3f25119208a998dd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=45827fb404b5bb4e10decd9f3…
Author: Francois Gouget <fgouget(a)free.fr> Date: Wed Mar 28 10:00:58 2007 +0200 netapi32/tests: Add a missing '\n' to a trace(). --- dlls/netapi32/tests/access.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c index c92c9f8..3861768 100644 --- a/dlls/netapi32/tests/access.c +++ b/dlls/netapi32/tests/access.c @@ -164,7 +164,7 @@ static void run_usergetinfo_tests(void) ok(rc == ERROR_INVALID_NAME,"Invalid Server Name: rc=%d\n",rc); if(delete_test_user() != NERR_Success) - trace("Deleting the test user failed. You might have to manually delete it."); + trace("Deleting the test user failed. You might have to manually delete it.\n"); } /* checks Level 1 of NetQueryDisplayInformation
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
9
...
85
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
Results per page:
10
25
50
100
200