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
August 2008
----- 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
839 discussions
Start a n
N
ew thread
Stefan Dösinger : wined3d: Implement D3DTOP_BUMPENVMAPLUMINANCE.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: 6c12b815525a487df20ba8a359a8bf1de5154643 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6c12b815525a487df20ba8a35…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Tue Aug 19 10:51:04 2008 -0500 wined3d: Implement D3DTOP_BUMPENVMAPLUMINANCE. --- dlls/d3d9/tests/visual.c | 88 +++++++++++++++++++++++++++++++++++-- dlls/wined3d/arb_program_shader.c | 71 +++++++++++++++++++++++++++--- 2 files changed, 149 insertions(+), 10 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6c12b815525a487df20ba…
1
0
0
0
Stefan Dösinger : wined3d: Fix the texcoord size mask.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: e8b9f167d678ab76bd812184e9cc4c96ff322a78 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e8b9f167d678ab76bd812184e…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Aug 20 10:51:45 2008 -0500 wined3d: Fix the texcoord size mask. There is room for 8 texture coordinates, not just 4. --- dlls/d3d9/vertexdeclaration.c | 2 +- dlls/wined3d/device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c index d38baaa..327c741 100644 --- a/dlls/d3d9/vertexdeclaration.c +++ b/dlls/d3d9/vertexdeclaration.c @@ -71,7 +71,7 @@ HRESULT vdecl_convert_fvf( BOOL has_specular = (fvf & D3DFVF_SPECULAR) !=0; DWORD num_textures = (fvf & D3DFVF_TEXCOUNT_MASK) >> D3DFVF_TEXCOUNT_SHIFT; - DWORD texcoords = (fvf & 0x00FF0000) >> 16; + DWORD texcoords = (fvf & 0xFFFF0000) >> 16; D3DVERTEXELEMENT9 end_element = D3DDECL_END(); D3DVERTEXELEMENT9 *elements = NULL; diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 350c6d5..4ff206d 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1735,7 +1735,7 @@ static unsigned int ConvertFvfToDeclaration(IWineD3DDeviceImpl *This, /* For the BOOL has_specular = (fvf & WINED3DFVF_SPECULAR) !=0; DWORD num_textures = (fvf & WINED3DFVF_TEXCOUNT_MASK) >> WINED3DFVF_TEXCOUNT_SHIFT; - DWORD texcoords = (fvf & 0x00FF0000) >> 16; + DWORD texcoords = (fvf & 0xFFFF0000) >> 16; WINED3DVERTEXELEMENT end_element = WINED3DDECL_END(); WINED3DVERTEXELEMENT *elements = NULL;
1
0
0
0
Stefan Dösinger : ddraw: Don't destroy the application 's window.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: 58ac095d9dc5f8e6776f7acf57363ee9f303a444 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=58ac095d9dc5f8e6776f7acf5…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Mon Aug 25 09:13:30 2008 -0500 ddraw: Don't destroy the application's window. --- dlls/ddraw/surface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 664229b..fc481e4 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -331,7 +331,7 @@ IDirectDrawSurfaceImpl_Release(IDirectDrawSurface7 *iface) else { /* Free the d3d window if one was created */ - if(ddraw->d3d_window != 0) + if(ddraw->d3d_window != 0 && ddraw->d3d_window != ddraw->dest_window) { TRACE(" (%p) Destroying the hidden render window %p\n", This, ddraw->d3d_window); DestroyWindow(ddraw->d3d_window);
1
0
0
0
Damjan Jovanovic : oleaut32: Thousands separator support for VarFormat.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: 506ff74bb17742b3be5a8824dc081a3e294ccf1d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=506ff74bb17742b3be5a8824d…
Author: Damjan Jovanovic <damjan.jov(a)gmail.com> Date: Mon Aug 25 20:40:20 2008 +0200 oleaut32: Thousands separator support for VarFormat. --- dlls/oleaut32/tests/varformat.c | 5 ++- dlls/oleaut32/varformat.c | 48 +++++++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c index 4098927..47fb8e6 100644 --- a/dlls/oleaut32/tests/varformat.c +++ b/dlls/oleaut32/tests/varformat.c @@ -324,9 +324,10 @@ static void test_VarFormat(void) VARFMT(VT_I4,V_I4,1,"000###",S_OK,"000001"); VARFMT(VT_I4,V_I4,1,"#00##00#0",S_OK,"00000001"); VARFMT(VT_I4,V_I4,1,"1#####0000",S_OK,"10001"); - todo_wine { VARFMT(VT_I4,V_I4,100000,"#,###,###,###",S_OK,"100,000"); - } + VARFMT(VT_I4,V_I4,1,"0,000,000,000",S_OK,"0,000,000,001"); + VARFMT(VT_I4,V_I4,123456789,"#,#.#",S_OK,"123,456,789."); + VARFMT(VT_I4,V_I4,123456789,"###, ###, ###",S_OK,"123, 456, 789"); VARFMT(VT_R8,V_R8,1.23456789,"0#.0#0#0#0#0",S_OK,"01.234567890"); VARFMT(VT_R8,V_R8,1.2,"0#.0#0#0#0#0",S_OK,"01.200000000"); VARFMT(VT_R8,V_R8,9.87654321,"#0.#0#0#0#0#",S_OK,"9.87654321"); diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c index 887525c..27735fc 100644 --- a/dlls/oleaut32/varformat.c +++ b/dlls/oleaut32/varformat.c @@ -1193,6 +1193,7 @@ static HRESULT VARIANT_FormatNumber(LPVARIANT pVarIn, LPOLESTR lpszFormat, NUMPARSE np; int have_int, need_int = 0, have_frac, need_frac, exponent = 0, pad = 0; WCHAR buff[256], *pBuff = buff; + WCHAR thousandSeparator[32]; VARIANT vString, vBool; DWORD dwState = 0; FMT_HEADER *header = (FMT_HEADER*)rgbTok; @@ -1315,6 +1316,16 @@ static HRESULT VARIANT_FormatNumber(LPVARIANT pVarIn, LPOLESTR lpszFormat, have_int, need_int, have_frac, need_frac, pad, exponent); } + if (numHeader->flags & FMT_FLAG_THOUSANDS) + { + if (!GetLocaleInfoW(lcid, LOCALE_STHOUSAND, thousandSeparator, + sizeof(thousandSeparator)/sizeof(WCHAR))) + { + thousandSeparator[0] = ','; + thousandSeparator[1] = 0; + } + } + pToken = (const BYTE*)numHeader + sizeof(FMT_NUMBER_HEADER); prgbDig = rgbDig; @@ -1463,7 +1474,7 @@ VARIANT_FormatNumber_Bool: } else { - int count, count_max; + int count, count_max, position; if ((np.dwOutFlags & NUMPRS_NEG) && !(dwState & NUM_WROTE_SIGN)) { @@ -1475,6 +1486,9 @@ VARIANT_FormatNumber_Bool: break; } + position = have_int + pad; + if (dwState & NUM_WRITE_ON) + position = max(position, need_int); need_int -= pToken[1]; count_max = have_int + pad - need_int; if (count_max < 0) @@ -1484,25 +1498,55 @@ VARIANT_FormatNumber_Bool: count = pToken[1] - count_max; TRACE("write %d leading zeros\n", count); while (count-- > 0) + { *pBuff++ = '0'; + if ((numHeader->flags & FMT_FLAG_THOUSANDS) && + position > 1 && (--position % 3) == 0) + { + int k; + TRACE("write thousand separator\n"); + for (k = 0; thousandSeparator[k]; k++) + *pBuff++ = thousandSeparator[k]; + } + } } if (*pToken == FMT_NUM_COPY_ZERO || have_int > 1 || (have_int > 0 && *prgbDig > 0)) { - dwState |= NUM_WRITE_ON; count = min(count_max, have_int); count_max -= count; have_int -= count; TRACE("write %d whole number digits\n", count); while (count--) + { + dwState |= NUM_WRITE_ON; *pBuff++ = '0' + *prgbDig++; + if ((numHeader->flags & FMT_FLAG_THOUSANDS) && + position > 1 && (--position % 3) == 0) + { + int k; + TRACE("write thousand separator\n"); + for (k = 0; thousandSeparator[k]; k++) + *pBuff++ = thousandSeparator[k]; + } + } } count = min(count_max, pad); count_max -= count; pad -= count; TRACE("write %d whole trailing 0's\n", count); while (count--) + { *pBuff++ = '0'; + if ((numHeader->flags & FMT_FLAG_THOUSANDS) && + position > 1 && (--position % 3) == 0) + { + int k; + TRACE("write thousand separator\n"); + for (k = 0; thousandSeparator[k]; k++) + *pBuff++ = thousandSeparator[k]; + } + } } pToken++; break;
1
0
0
0
Andrew Talbot : dxdiagn: Sign-compare warning fix.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: b31766fee6d558adafae82e33d70f753a39be6b0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b31766fee6d558adafae82e33…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Mon Aug 25 15:36:12 2008 +0100 dxdiagn: Sign-compare warning fix. --- dlls/dxdiagn/container.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dxdiagn/container.c b/dlls/dxdiagn/container.c index 9172fa7..c4278b1 100644 --- a/dlls/dxdiagn/container.c +++ b/dlls/dxdiagn/container.c @@ -194,8 +194,8 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(PDXDIAGCONTAINER iface, p = This->properties; while (NULL != p) { if (dwIndex == i) { - if (cchPropName <= lstrlenW(p->vName)) { - return DXDIAG_E_INSUFFICIENT_BUFFER; + if (cchPropName <= strlenW(p->vName)) { + return DXDIAG_E_INSUFFICIENT_BUFFER; } lstrcpynW(pwszPropName, p->vName, cchPropName); return S_OK;
1
0
0
0
Paul Vriens : kernel32/tests: Use skip instead of trace.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: 56ba2baa01973f40de64c4d9702158de2fb1d341 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=56ba2baa01973f40de64c4d97…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Aug 25 17:55:25 2008 +0200 kernel32/tests: Use skip instead of trace. --- dlls/kernel32/tests/locale.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c index 59d02cf..f792da2 100644 --- a/dlls/kernel32/tests/locale.c +++ b/dlls/kernel32/tests/locale.c @@ -1193,7 +1193,7 @@ static void test_LCMapStringW(void) upper_case, -1, buf, sizeof(buf)/sizeof(WCHAR)); if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) { - trace("Skipping LCMapStringW tests on Win9x\n"); + win_skip("LCMapStringW is not implemented\n"); return; } ok(!ret, "LCMAP_LOWERCASE and LCMAP_UPPERCASE are mutually exclusive\n");
1
0
0
0
Paul Vriens : kernel32/tests: Use a file that is available on all platforms .
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: ac07480fab24861467f80320cce9b34059198018 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ac07480fab24861467f80320c…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Aug 25 17:22:44 2008 +0200 kernel32/tests: Use a file that is available on all platforms. --- dlls/kernel32/tests/file.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c index 3502e83..5b8b00d 100644 --- a/dlls/kernel32/tests/file.c +++ b/dlls/kernel32/tests/file.c @@ -1667,7 +1667,7 @@ static void test_OpenFile(void) BOOL ret; DWORD retval; - static const char *file = "\\regsvr32.exe"; + static const char *file = "\\regedit.exe"; static const char *foo = ".\\foo-bar-foo.baz"; static const char *foo_too_long = ".\\foo-bar-foo.baz+++++++++++++++" "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" @@ -1682,7 +1682,7 @@ static void test_OpenFile(void) UINT length; /* Check for existing file */ - length = GetSystemDirectoryA(buff, MAX_PATH); + length = GetWindowsDirectoryA(buff, MAX_PATH); if (length + lstrlen(file) < MAX_PATH) {
1
0
0
0
Paul Vriens : kernel32/tests: Fix two failures on win9x.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: 920c1fc77afc82a3a6674bc16beaeed8e58f8a4f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=920c1fc77afc82a3a6674bc16…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Aug 25 16:48:31 2008 +0200 kernel32/tests: Fix two failures on win9x. --- dlls/kernel32/tests/file.c | 8 ++++++-- include/winnt.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c index 4730ec4..3502e83 100644 --- a/dlls/kernel32/tests/file.c +++ b/dlls/kernel32/tests/file.c @@ -1353,7 +1353,9 @@ static void test_FindFirstFileA(void) ok( 0 == lstrcmpiA(data.cFileName, "nul"), "wrong name %s\n", data.cFileName ); ok( 0 == data.nFileSizeHigh, "wrong size %d\n", data.nFileSizeHigh ); ok( 0 == data.nFileSizeLow, "wrong size %d\n", data.nFileSizeLow ); - ok( FILE_ATTRIBUTE_ARCHIVE == data.dwFileAttributes, "wrong attributes %x\n", data.dwFileAttributes ); + ok( FILE_ATTRIBUTE_ARCHIVE == data.dwFileAttributes || + FILE_ATTRIBUTE_DEVICE == data.dwFileAttributes /* Win9x */, + "wrong attributes %x\n", data.dwFileAttributes ); SetLastError( 0xdeadbeaf ); ok( !FindNextFileA( handle, &data ), "FindNextFileA succeeded\n" ); ok( GetLastError() == ERROR_NO_MORE_FILES, "bad error %d\n", GetLastError() ); @@ -1368,7 +1370,9 @@ static void test_FindFirstFileA(void) ok( 0 == lstrcmpiA(data.cFileName, "lpt1"), "wrong name %s\n", data.cFileName ); ok( 0 == data.nFileSizeHigh, "wrong size %d\n", data.nFileSizeHigh ); ok( 0 == data.nFileSizeLow, "wrong size %d\n", data.nFileSizeLow ); - ok( FILE_ATTRIBUTE_ARCHIVE == data.dwFileAttributes, "wrong attributes %x\n", data.dwFileAttributes ); + ok( FILE_ATTRIBUTE_ARCHIVE == data.dwFileAttributes || + FILE_ATTRIBUTE_DEVICE == data.dwFileAttributes /* Win9x */, + "wrong attributes %x\n", data.dwFileAttributes ); SetLastError( 0xdeadbeaf ); ok( !FindNextFileA( handle, &data ), "FindNextFileA succeeded\n" ); ok( GetLastError() == ERROR_NO_MORE_FILES, "bad error %d\n", GetLastError() ); diff --git a/include/winnt.h b/include/winnt.h index e8a37f5..7ca80a7 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -4118,6 +4118,7 @@ typedef struct _QUOTA_LIMITS_EX { #define FILE_ATTRIBUTE_SYSTEM 0x00000004 #define FILE_ATTRIBUTE_DIRECTORY 0x00000010 #define FILE_ATTRIBUTE_ARCHIVE 0x00000020 +#define FILE_ATTRIBUTE_DEVICE 0x00000040 #define FILE_ATTRIBUTE_NORMAL 0x00000080 #define FILE_ATTRIBUTE_TEMPORARY 0x00000100 #define FILE_ATTRIBUTE_SPARSE_FILE 0x00000200
1
0
0
0
Paul Vriens : advapi32/tests: Don't test unimplemented functions.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: 70c7cd2bd6567e93e4217eda61970a3e139852d9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=70c7cd2bd6567e93e4217eda6…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Aug 25 14:16:25 2008 +0200 advapi32/tests: Don't test unimplemented functions. --- dlls/advapi32/tests/security.c | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index f2bafce..9b3f7e6 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -101,6 +101,8 @@ static NTSTATUS (WINAPI *pNtQueryObject)(HANDLE,OBJECT_INFORMATION_CLASS,PVOID,U static DWORD (WINAPI *pSetEntriesInAclW)(ULONG, PEXPLICIT_ACCESSW, PACL, PACL*); static BOOL (WINAPI *pSetSecurityDescriptorControl)(PSECURITY_DESCRIPTOR, SECURITY_DESCRIPTOR_CONTROL, SECURITY_DESCRIPTOR_CONTROL); +static DWORD (WINAPI *pGetSecurityInfo)(HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, + PSID*, PSID*, PACL*, PACL*, PSECURITY_DESCRIPTOR*); static HMODULE hmod; static int myARGC; @@ -149,6 +151,7 @@ static void init(void) pMakeSelfRelativeSD = (void *)GetProcAddress(hmod, "MakeSelfRelativeSD"); pSetEntriesInAclW = (void *)GetProcAddress(hmod, "SetEntriesInAclW"); pSetSecurityDescriptorControl = (void *)GetProcAddress(hmod, "SetSecurityDescriptorControl"); + pGetSecurityInfo = (void *)GetProcAddress(hmod, "GetSecurityInfo"); myARGC = winetest_get_mainargs( &myARGV ); } @@ -2493,6 +2496,12 @@ static void test_GetSecurityInfo(void) PACL dacl; DWORD ret; + if (!pGetSecurityInfo) + { + win_skip("GetSecurityInfo is not available\n"); + return; + } + /* Create something. Files have lots of associated security info. */ obj = CreateFile(myARGV[0], GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); @@ -2502,9 +2511,15 @@ static void test_GetSecurityInfo(void) return; } - ret = GetSecurityInfo(obj, SE_FILE_OBJECT, + ret = pGetSecurityInfo(obj, SE_FILE_OBJECT, OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION, &owner, &group, &dacl, NULL, &sd); + if (ret == ERROR_CALL_NOT_IMPLEMENTED) + { + win_skip("GetSecurityInfo is not implemented\n"); + CloseHandle(obj); + return; + } ok(ret == ERROR_SUCCESS, "GetSecurityInfo returned %d\n", ret); ok(sd != NULL, "GetSecurityInfo\n"); ok(owner != NULL, "GetSecurityInfo\n"); @@ -2516,7 +2531,7 @@ static void test_GetSecurityInfo(void) /* If we don't ask for the security descriptor, Windows will still give us the other stuff, leaving us no way to free it. */ - ret = GetSecurityInfo(obj, SE_FILE_OBJECT, + ret = pGetSecurityInfo(obj, SE_FILE_OBJECT, OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION, &owner, &group, &dacl, NULL, NULL); ok(ret == ERROR_SUCCESS, "GetSecurityInfo returned %d\n", ret);
1
0
0
0
Paul Vriens : advapi32/tests: SC_MANAGER_ENUMERATE_SERVICE is enough.
by Alexandre Julliard
26 Aug '08
26 Aug '08
Module: wine Branch: master Commit: e3bd938bd1482502f92e251ec8fca6009464b7d9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e3bd938bd1482502f92e251ec…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Aug 25 10:52:03 2008 +0200 advapi32/tests: SC_MANAGER_ENUMERATE_SERVICE is enough. --- dlls/advapi32/tests/service.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c index 55f3040..1cf0f62 100644 --- a/dlls/advapi32/tests/service.c +++ b/dlls/advapi32/tests/service.c @@ -1068,7 +1068,7 @@ static void test_enum_svc(void) /* Open the service control manager with the needed rights */ CloseServiceHandle(scm_handle); - scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE); + scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_ENUMERATE_SERVICE); /* All parameters are correct. Request the needed buffer size */ needed = 0xdeadbeef; @@ -1438,7 +1438,7 @@ static void test_enum_svc(void) /* Open the service control manager with the needed rights */ CloseServiceHandle(scm_handle); - scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE); + scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_ENUMERATE_SERVICE); /* All parameters are correct and the group will be checked */ needed = 0xdeadbeef;
1
0
0
0
← Newer
1
...
21
22
23
24
25
26
27
...
84
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
Results per page:
10
25
50
100
200