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
Jason Edmeades : xcopy: Add support for /N (shortname copy).
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: fe89021458c470c24e795a3a297ff04f2288432b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fe89021458c470c24e795a3a2…
Author: Jason Edmeades <us(a)edmeades.me.uk> Date: Thu Mar 29 22:21:04 2007 +0100 xcopy: Add support for /N (shortname copy). --- programs/xcopy/xcopy.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 0342d39..281f812 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -49,6 +49,7 @@ #define OPT_PAUSE 0x00000040 #define OPT_NOCOPY 0x00000080 #define OPT_NOPROMPT 0x00000100 +#define OPT_SHORTNAME 0x00000200 #define MAXSTRING 8192 @@ -151,6 +152,7 @@ int main (int argc, char *argv[]) case 'W': flags |= OPT_PAUSE; break; case 'T': flags |= OPT_NOCOPY | OPT_RECURSIVE; break; case 'Y': flags |= OPT_NOPROMPT; break; + case 'N': flags |= OPT_SHORTNAME; break; case '-': if (toupper(argvW[0][2])=='Y') flags &= ~OPT_NOPROMPT; break; default: @@ -412,11 +414,19 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec, /* Get the filename information */ lstrcpyW(copyFrom, srcstem); - lstrcatW(copyFrom, finddata->cFileName); + if (flags & OPT_SHORTNAME) { + lstrcatW(copyFrom, finddata->cAlternateFileName); + } else { + lstrcatW(copyFrom, finddata->cFileName); + } lstrcpyW(copyTo, deststem); if (*destspec == 0x00) { - lstrcatW(copyTo, finddata->cFileName); + if (flags & OPT_SHORTNAME) { + lstrcatW(copyTo, finddata->cAlternateFileName); + } else { + lstrcatW(copyTo, finddata->cFileName); + } } else { lstrcatW(copyTo, destspec); }
1
0
0
0
Jason Edmeades : xcopy: Add support for COPYCMD override and fix /-y.
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: 30fcdd9f07c4cf9860089e75e87236bc96cfafc9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=30fcdd9f07c4cf9860089e75e…
Author: Jason Edmeades <us(a)edmeades.me.uk> Date: Thu Mar 29 22:21:03 2007 +0100 xcopy: Add support for COPYCMD override and fix /-y. --- programs/xcopy/xcopy.c | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 25995f2..0342d39 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -50,6 +50,8 @@ #define OPT_NOCOPY 0x00000080 #define OPT_NOPROMPT 0x00000100 +#define MAXSTRING 8192 + WINE_DEFAULT_DEBUG_CHANNEL(xcopy); /* Prototypes */ @@ -91,8 +93,13 @@ int main (int argc, char *argv[]) WCHAR sourcespec[MAX_PATH] = {0}; /* Filespec of source */ WCHAR destinationstem[MAX_PATH] = {0}; /* Stem of destination */ WCHAR destinationspec[MAX_PATH] = {0}; /* Filespec of destination */ + WCHAR copyCmd[MAXSTRING]; /* COPYCMD env var */ DWORD flags = 0; /* Option flags */ LPWSTR *argvW = NULL; + const WCHAR PROMPTSTR1[] = {'/', 'Y', 0}; + const WCHAR PROMPTSTR2[] = {'/', 'y', 0}; + const WCHAR COPYCMD[] = {'C', 'O', 'P', 'Y', 'C', 'M', 'D', 0}; + /* * Parse the command line */ @@ -106,6 +113,14 @@ int main (int argc, char *argv[]) return RC_INITERROR; } + /* Preinitialize flags based on COPYCMD */ + if (GetEnvironmentVariable(COPYCMD, copyCmd, MAXSTRING)) { + if (wcsstr(copyCmd, PROMPTSTR1) != NULL || + wcsstr(copyCmd, PROMPTSTR2) != NULL) { + flags |= OPT_NOPROMPT; + } + } + /* Skip first arg, which is the program name */ argvW++; @@ -136,7 +151,8 @@ int main (int argc, char *argv[]) case 'W': flags |= OPT_PAUSE; break; case 'T': flags |= OPT_NOCOPY | OPT_RECURSIVE; break; case 'Y': flags |= OPT_NOPROMPT; break; - case '-': if (argvW[0][2]=='Y') flags &= ~OPT_NOPROMPT; break; + case '-': if (toupper(argvW[0][2])=='Y') + flags &= ~OPT_NOPROMPT; break; default: WINE_FIXME("Unhandled parameter '%s'\n", wine_dbgstr_w(*argvW)); }
1
0
0
0
Jason Edmeades : xcopy: Prompt when overwriting files, add /Y and / -Y support.
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: 70fe414c2a2e81fee3d93aa4a4cdeedf67364c74 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=70fe414c2a2e81fee3d93aa4a…
Author: Jason Edmeades <us(a)edmeades.me.uk> Date: Thu Mar 29 22:21:01 2007 +0100 xcopy: Prompt when overwriting files, add /Y and /-Y support. --- programs/xcopy/xcopy.c | 60 ++++++++++++++++++++++++++++++++++++------------ 1 files changed, 45 insertions(+), 15 deletions(-) diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 193fff0..25995f2 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -48,6 +48,7 @@ #define OPT_SIMULATE 0x00000020 #define OPT_PAUSE 0x00000040 #define OPT_NOCOPY 0x00000080 +#define OPT_NOPROMPT 0x00000100 WINE_DEFAULT_DEBUG_CHANNEL(xcopy); @@ -134,6 +135,8 @@ int main (int argc, char *argv[]) case 'L': flags |= OPT_SIMULATE; break; case 'W': flags |= OPT_PAUSE; break; case 'T': flags |= OPT_NOCOPY | OPT_RECURSIVE; break; + case 'Y': flags |= OPT_NOPROMPT; break; + case '-': if (argvW[0][2]=='Y') flags &= ~OPT_NOPROMPT; break; default: WINE_FIXME("Unhandled parameter '%s'\n", wine_dbgstr_w(*argvW)); } @@ -179,7 +182,6 @@ int main (int argc, char *argv[]) destinationstem, destinationspec, flags); - /* Finished - print trailer and exit */ if (flags & OPT_SIMULATE) { printf("%d file(s) would be copied\n", filesCopied); @@ -366,6 +368,8 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec, BOOL findres = TRUE; WCHAR *inputpath, *outputpath; BOOL copiedFile = FALSE; + DWORD destAttribs; + BOOL skipFile; /* Allocate some working memory on heap to minimize footprint */ finddata = HeapAlloc(GetProcessHeap(), 0, sizeof(WIN32_FIND_DATA)); @@ -380,6 +384,8 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec, h = FindFirstFile(inputpath, finddata); while (h != INVALID_HANDLE_VALUE && findres) { + skipFile = FALSE; + /* Ignore . and .. */ if (lstrcmpW(finddata->cFileName, wchr_dot)==0 || lstrcmpW(finddata->cFileName, wchr_dotdot)==0 || @@ -404,23 +410,47 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec, wine_dbgstr_w(copyTo)); if (!copiedFile && !(flags & OPT_SIMULATE)) XCOPY_CreateDirectory(deststem); - /* Output a status message */ - if (flags & OPT_QUIET) { - /* Skip message */ - } else if (flags & OPT_FULL) { - printf("%S -> %S\n", copyFrom, copyTo); - } else { - printf("%S\n", copyFrom); + /* See if file exists */ + destAttribs = GetFileAttributesW(copyTo); + if (destAttribs != INVALID_FILE_ATTRIBUTES && !(flags & OPT_NOPROMPT)) { + DWORD count; + char answer[10]; + BOOL answered = FALSE; + + while (!answered) { + printf("Overwrite %S? (Yes|No|All)\n", copyTo); + ReadFile (GetStdHandle(STD_INPUT_HANDLE), answer, sizeof(answer), + &count, NULL); + + answered = TRUE; + if (toupper(answer[0]) == 'A') + flags |= OPT_NOPROMPT; + else if (toupper(answer[0]) == 'N') + skipFile = TRUE; + else if (toupper(answer[0]) != 'Y') + answered = FALSE; + } } - copiedFile = TRUE; - if (flags & OPT_SIMULATE || flags & OPT_NOCOPY) { - /* Skip copy */ - } else if (CopyFile(copyFrom, copyTo, TRUE) == 0) { - printf("Copying of '%S' to '%S' failed with r/c %d\n", - copyFrom, copyTo, GetLastError()); + /* Output a status message */ + if (!skipFile) { + if (flags & OPT_QUIET) { + /* Skip message */ + } else if (flags & OPT_FULL) { + printf("%S -> %S\n", copyFrom, copyTo); + } else { + printf("%S\n", copyFrom); + } + + copiedFile = TRUE; + if (flags & OPT_SIMULATE || flags & OPT_NOCOPY) { + /* Skip copy */ + } else if (CopyFile(copyFrom, copyTo, FALSE) == 0) { + printf("Copying of '%S' to '%S' failed with r/c %d\n", + copyFrom, copyTo, GetLastError()); + } + filesCopied++; } - filesCopied++; } /* Find next file */
1
0
0
0
Jason Edmeades : xcopy: Add support for /T (no copy).
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: 59bf2dc341430d1b07fcdbed8fc1f8db5f335773 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=59bf2dc341430d1b07fcdbed8…
Author: Jason Edmeades <us(a)edmeades.me.uk> Date: Thu Mar 29 22:21:00 2007 +0100 xcopy: Add support for /T (no copy). --- programs/xcopy/xcopy.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 848fe0d..193fff0 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -47,6 +47,7 @@ #define OPT_FULL 0x00000010 #define OPT_SIMULATE 0x00000020 #define OPT_PAUSE 0x00000040 +#define OPT_NOCOPY 0x00000080 WINE_DEFAULT_DEBUG_CHANNEL(xcopy); @@ -132,6 +133,7 @@ int main (int argc, char *argv[]) case 'F': flags |= OPT_FULL; break; case 'L': flags |= OPT_SIMULATE; break; case 'W': flags |= OPT_PAUSE; break; + case 'T': flags |= OPT_NOCOPY | OPT_RECURSIVE; break; default: WINE_FIXME("Unhandled parameter '%s'\n", wine_dbgstr_w(*argvW)); } @@ -181,7 +183,7 @@ int main (int argc, char *argv[]) /* Finished - print trailer and exit */ if (flags & OPT_SIMULATE) { printf("%d file(s) would be copied\n", filesCopied); - } else { + } else if (!(flags & OPT_NOCOPY)) { printf("%d file(s) copied\n", filesCopied); } if (rc == RC_OK && filesCopied == 0) rc = RC_NOFILES; @@ -412,8 +414,8 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec, } copiedFile = TRUE; - if (flags & OPT_SIMULATE) { - /* Skip copy as just simulating */ + if (flags & OPT_SIMULATE || flags & OPT_NOCOPY) { + /* Skip copy */ } else if (CopyFile(copyFrom, copyTo, TRUE) == 0) { printf("Copying of '%S' to '%S' failed with r/c %d\n", copyFrom, copyTo, GetLastError());
1
0
0
0
Jason Edmeades : xcopy: Add support for /W (pause).
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: cf872445a3c4f8d9112851b3999bfc134923f160 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cf872445a3c4f8d9112851b39…
Author: Jason Edmeades <us(a)edmeades.me.uk> Date: Thu Mar 29 22:20:59 2007 +0100 xcopy: Add support for /W (pause). --- programs/xcopy/xcopy.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 718923e..848fe0d 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -46,6 +46,7 @@ #define OPT_QUIET 0x00000008 #define OPT_FULL 0x00000010 #define OPT_SIMULATE 0x00000020 +#define OPT_PAUSE 0x00000040 WINE_DEFAULT_DEBUG_CHANNEL(xcopy); @@ -130,6 +131,7 @@ int main (int argc, char *argv[]) case 'Q': flags |= OPT_QUIET; break; case 'F': flags |= OPT_FULL; break; case 'L': flags |= OPT_SIMULATE; break; + case 'W': flags |= OPT_PAUSE; break; default: WINE_FIXME("Unhandled parameter '%s'\n", wine_dbgstr_w(*argvW)); } @@ -160,6 +162,16 @@ int main (int argc, char *argv[]) WINE_TRACE("Dest Stem : '%s'\n", wine_dbgstr_w(destinationstem)); WINE_TRACE("Dest Spec : '%s'\n", wine_dbgstr_w(destinationspec)); + /* Pause if necessary */ + if (flags & OPT_PAUSE) { + DWORD count; + char pausestr[10]; + + printf("Press <enter> to begin copying\n"); + ReadFile (GetStdHandle(STD_INPUT_HANDLE), pausestr, sizeof(pausestr), + &count, NULL); + } + /* Now do the hard work... */ rc = XCOPY_DoCopy(sourcestem, sourcespec, destinationstem, destinationspec,
1
0
0
0
Chris Robinson : quartz: Add filters using their names.
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: 60f325d967a8160931e2f641fe1a06ed128f1731 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=60f325d967a8160931e2f641f…
Author: Chris Robinson <chris.kcat(a)gmail.com> Date: Fri Mar 30 00:01:23 2007 -0700 quartz: Add filters using their names. --- dlls/quartz/filtergraph.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 5e1061e..5964502 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -774,7 +774,7 @@ static HRESULT WINAPI GraphBuilder_Connect(IGraphBuilder *iface, goto error; } - hr = IGraphBuilder_AddFilter(iface, pfilter, NULL); + hr = IGraphBuilder_AddFilter(iface, pfilter, V_UNION(&var, bstrVal)); if (FAILED(hr)) { ERR("Unable to add filter (%x)\n", hr); IBaseFilter_Release(pfilter); @@ -923,7 +923,7 @@ static HRESULT WINAPI GraphBuilder_Render(IGraphBuilder *iface, goto error; } - hr = IGraphBuilder_AddFilter(iface, pfilter, NULL); + hr = IGraphBuilder_AddFilter(iface, pfilter, V_UNION(&var, bstrVal)); if (FAILED(hr)) { ERR("Unable to add filter (%x)\n", hr); IBaseFilter_Release(pfilter); @@ -1056,7 +1056,7 @@ static HRESULT WINAPI GraphBuilder_RenderFile(IGraphBuilder *iface, continue; } - hr = IGraphBuilder_AddFilter(iface, psplitter, NULL); + hr = IGraphBuilder_AddFilter(iface, psplitter, V_UNION(&var, bstrVal)); if (FAILED(hr)) { ERR("Unable add filter (%x)\n", hr); IBaseFilter_Release(psplitter);
1
0
0
0
Andrew Talbot : comctl32: Cast-qual warnings fix.
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: 3017a48e482a6e200517f51a5bbb98e8ac2b0d5e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3017a48e482a6e200517f51a5…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Thu Mar 29 23:12:35 2007 +0100 comctl32: Cast-qual warnings fix. --- dlls/comctl32/listview.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 21b8866..68a1ddb 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -420,7 +420,7 @@ static INT LISTVIEW_GetLabelWidth(const LISTVIEW_INFO *, INT); static void LISTVIEW_GetOrigin(const LISTVIEW_INFO *, LPPOINT); static BOOL LISTVIEW_GetViewRect(const LISTVIEW_INFO *, LPRECT); static void LISTVIEW_SetGroupSelection(LISTVIEW_INFO *, INT); -static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *, const LVITEMW *, BOOL); +static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *, LVITEMW *, BOOL); static void LISTVIEW_UpdateScroll(const LISTVIEW_INFO *); static void LISTVIEW_SetSelection(LISTVIEW_INFO *, INT); static void LISTVIEW_UpdateSize(LISTVIEW_INFO *); @@ -3590,7 +3590,7 @@ static BOOL set_sub_item(const LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, * SUCCESS : TRUE * FAILURE : FALSE */ -static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL isW) +static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, LVITEMW *lpLVItem, BOOL isW) { UINT uView = infoPtr->dwStyle & LVS_TYPEMASK; HWND hwndSelf = infoPtr->hwndSelf; @@ -3606,7 +3606,7 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, B if ((lpLVItem->mask & LVIF_TEXT) && is_textW(lpLVItem->pszText)) { pszText = lpLVItem->pszText; - ((LVITEMW *)lpLVItem)->pszText = textdupTtoW(lpLVItem->pszText, isW); + lpLVItem->pszText = textdupTtoW(lpLVItem->pszText, isW); } /* actually set the fields */ @@ -3634,7 +3634,7 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, B if (pszText) { textfreeT(lpLVItem->pszText, isW); - ((LVITEMW *)lpLVItem)->pszText = pszText; + lpLVItem->pszText = pszText; } return bResult; @@ -3723,7 +3723,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS { UINT uFormat, uView = infoPtr->dwStyle & LVS_TYPEMASK; WCHAR szDispText[DISP_TEXT_SIZE] = { '\0' }; - static const WCHAR szCallback[] = { '(', 'c', 'a', 'l', 'l', 'b', 'a', 'c', 'k', ')', 0 }; + static WCHAR szCallback[] = { '(', 'c', 'a', 'l', 'l', 'b', 'a', 'c', 'k', ')', 0 }; DWORD cdsubitemmode = CDRF_DODEFAULT; LPRECT lprcFocus; RECT rcSelect, rcBox, rcIcon, rcLabel, rcStateIcon; @@ -3748,7 +3748,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS if (!LISTVIEW_GetItemW(infoPtr, &lvItem)) return FALSE; if (nSubItem > 0 && (infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT)) lvItem.state = LISTVIEW_GetItemState(infoPtr, nItem, LVIS_SELECTED); - if (lvItem.pszText == LPSTR_TEXTCALLBACKW) lvItem.pszText = (LPWSTR)szCallback; + if (lvItem.pszText == LPSTR_TEXTCALLBACKW) lvItem.pszText = szCallback; TRACE(" lvItem=%s\n", debuglvitem_t(&lvItem, TRUE)); /* now check if we need to update the focus rectangle */
1
0
0
0
Andrew Talbot : comctl32: Constify some variables.
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: a8a469c7c0bf6f6dd0edbd9a4fa4c69ccd2c4178 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a8a469c7c0bf6f6dd0edbd9a4…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Thu Mar 29 22:09:32 2007 +0100 comctl32: Constify some variables. --- dlls/comctl32/monthcal.c | 48 +++++++++++++++++++++++----------------------- 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 9f25689..6fe6283 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -189,7 +189,7 @@ static int MONTHCAL_CalculateDayOfWeek(DWORD day, DWORD month, DWORD year) /* From a given point, calculate the row (weekpos), column(daypos) and day in the calendar. day== 0 mean the last day of tha last month */ -static int MONTHCAL_CalcDayFromPos(MONTHCAL_INFO *infoPtr, int x, int y, +static int MONTHCAL_CalcDayFromPos(const MONTHCAL_INFO *infoPtr, int x, int y, int *daypos,int *weekpos) { int retval, firstDay; @@ -214,7 +214,7 @@ static int MONTHCAL_CalcDayFromPos(MONTHCAL_INFO *infoPtr, int x, int y, /* day is the day of the month, 1 == 1st day of the month */ /* sets x and y to be the position of the day */ /* x == day, y == week where(0,0) == firstDay, 1st week */ -static void MONTHCAL_CalcDayXY(MONTHCAL_INFO *infoPtr, int day, int month, +static void MONTHCAL_CalcDayXY(const MONTHCAL_INFO *infoPtr, int day, int month, int *x, int *y) { int firstDay, prevMonth; @@ -243,7 +243,7 @@ static void MONTHCAL_CalcDayXY(MONTHCAL_INFO *infoPtr, int day, int month, /* x: column(day), y: row(week) */ -static void MONTHCAL_CalcDayRect(MONTHCAL_INFO *infoPtr, RECT *r, int x, int y) +static void MONTHCAL_CalcDayRect(const MONTHCAL_INFO *infoPtr, RECT *r, int x, int y) { r->left = infoPtr->days.left + x * infoPtr->width_increment; r->right = r->left + infoPtr->width_increment; @@ -255,7 +255,7 @@ static void MONTHCAL_CalcDayRect(MONTHCAL_INFO *infoPtr, RECT *r, int x, int y) /* sets the RECT struct r to the rectangle around the day and month */ /* day is the day value of the month(1 == 1st), month is the month */ /* value(january == 1, december == 12) */ -static inline void MONTHCAL_CalcPosFromDay(MONTHCAL_INFO *infoPtr, +static inline void MONTHCAL_CalcPosFromDay(const MONTHCAL_INFO *infoPtr, int day, int month, RECT *r) { int x, y; @@ -267,7 +267,7 @@ static inline void MONTHCAL_CalcPosFromDay(MONTHCAL_INFO *infoPtr, /* day is the day in the month(1 == 1st of the month) */ /* month is the month value(1 == january, 12 == december) */ -static void MONTHCAL_CircleDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month) +static void MONTHCAL_CircleDay(const MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month) { HPEN hRedPen = CreatePen(PS_SOLID, 2, RGB(255, 0, 0)); HPEN hOldPen2 = SelectObject(hdc, hRedPen); @@ -318,7 +318,7 @@ static void MONTHCAL_CircleDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int mon } -static void MONTHCAL_DrawDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month, +static void MONTHCAL_DrawDay(const MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month, int x, int y, int bold) { static const WCHAR fmtW[] = { '%','d',0 }; @@ -387,7 +387,7 @@ static void MONTHCAL_DrawDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month } -static void paint_button (MONTHCAL_INFO *infoPtr, HDC hdc, BOOL btnNext, +static void paint_button (const MONTHCAL_INFO *infoPtr, HDC hdc, BOOL btnNext, BOOL pressed, RECT* r) { HTHEME theme = GetWindowTheme (infoPtr->hwndSelf); @@ -426,7 +426,7 @@ static void paint_button (MONTHCAL_INFO *infoPtr, HDC hdc, BOOL btnNext, } -static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, PAINTSTRUCT* ps) +static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT *ps) { static const WCHAR todayW[] = { 'T','o','d','a','y',':',0 }; static const WCHAR fmt1W[] = { '%','s',' ','%','l','d',0 }; @@ -773,7 +773,7 @@ static void MONTHCAL_Refresh(MONTHCAL_INFO *infoPtr, HDC hdc, PAINTSTRUCT* ps) static LRESULT -MONTHCAL_GetMinReqRect(MONTHCAL_INFO *infoPtr, LPARAM lParam) +MONTHCAL_GetMinReqRect(const MONTHCAL_INFO *infoPtr, LPARAM lParam) { LPRECT lpRect = (LPRECT) lParam; @@ -796,7 +796,7 @@ MONTHCAL_GetMinReqRect(MONTHCAL_INFO *infoPtr, LPARAM lParam) static LRESULT -MONTHCAL_GetColor(MONTHCAL_INFO *infoPtr, WPARAM wParam) +MONTHCAL_GetColor(const MONTHCAL_INFO *infoPtr, WPARAM wParam) { TRACE("\n"); @@ -859,7 +859,7 @@ MONTHCAL_SetColor(MONTHCAL_INFO *infoPtr, WPARAM wParam, LPARAM lParam) static LRESULT -MONTHCAL_GetMonthDelta(MONTHCAL_INFO *infoPtr) +MONTHCAL_GetMonthDelta(const MONTHCAL_INFO *infoPtr) { TRACE("\n"); @@ -883,7 +883,7 @@ MONTHCAL_SetMonthDelta(MONTHCAL_INFO *infoPtr, WPARAM wParam) static LRESULT -MONTHCAL_GetFirstDayOfWeek(MONTHCAL_INFO *infoPtr) +MONTHCAL_GetFirstDayOfWeek(const MONTHCAL_INFO *infoPtr) { return infoPtr->firstDay; } @@ -919,7 +919,7 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, LPARAM lParam) static LRESULT -MONTHCAL_GetMonthRange(MONTHCAL_INFO *infoPtr) +MONTHCAL_GetMonthRange(const MONTHCAL_INFO *infoPtr) { TRACE("\n"); @@ -928,7 +928,7 @@ MONTHCAL_GetMonthRange(MONTHCAL_INFO *infoPtr) static LRESULT -MONTHCAL_GetMaxTodayWidth(MONTHCAL_INFO *infoPtr) +MONTHCAL_GetMaxTodayWidth(const MONTHCAL_INFO *infoPtr) { return(infoPtr->todayrect.right - infoPtr->todayrect.left); } @@ -1003,7 +1003,7 @@ MONTHCAL_GetRange(HWND hwnd, WPARAM wParam, LPARAM lParam) static LRESULT -MONTHCAL_SetDayState(MONTHCAL_INFO *infoPtr, WPARAM wParam, LPARAM lParam) +MONTHCAL_SetDayState(const MONTHCAL_INFO *infoPtr, WPARAM wParam, LPARAM lParam) { int i, iMonths = (int)wParam; @@ -1018,7 +1018,7 @@ MONTHCAL_SetDayState(MONTHCAL_INFO *infoPtr, WPARAM wParam, LPARAM lParam) } static LRESULT -MONTHCAL_GetCurSel(MONTHCAL_INFO *infoPtr, LPARAM lParam) +MONTHCAL_GetCurSel(const MONTHCAL_INFO *infoPtr, LPARAM lParam) { SYSTEMTIME *lpSel = (SYSTEMTIME *) lParam; @@ -1057,7 +1057,7 @@ MONTHCAL_SetCurSel(MONTHCAL_INFO *infoPtr, LPARAM lParam) static LRESULT -MONTHCAL_GetMaxSelCount(MONTHCAL_INFO *infoPtr) +MONTHCAL_GetMaxSelCount(const MONTHCAL_INFO *infoPtr) { return infoPtr->maxSelCount; } @@ -1077,7 +1077,7 @@ MONTHCAL_SetMaxSelCount(MONTHCAL_INFO *infoPtr, WPARAM wParam) static LRESULT -MONTHCAL_GetSelRange(MONTHCAL_INFO *infoPtr, LPARAM lParam) +MONTHCAL_GetSelRange(const MONTHCAL_INFO *infoPtr, LPARAM lParam) { SYSTEMTIME *lprgSysTimeArray = (SYSTEMTIME *) lParam; @@ -1123,7 +1123,7 @@ MONTHCAL_SetSelRange(MONTHCAL_INFO *infoPtr, LPARAM lParam) static LRESULT -MONTHCAL_GetToday(MONTHCAL_INFO *infoPtr, LPARAM lParam) +MONTHCAL_GetToday(const MONTHCAL_INFO *infoPtr, LPARAM lParam) { SYSTEMTIME *lpToday = (SYSTEMTIME *) lParam; @@ -1154,7 +1154,7 @@ MONTHCAL_SetToday(MONTHCAL_INFO *infoPtr, LPARAM lParam) static LRESULT -MONTHCAL_HitTest(MONTHCAL_INFO *infoPtr, LPARAM lParam) +MONTHCAL_HitTest(const MONTHCAL_INFO *infoPtr, LPARAM lParam) { PMCHITTESTINFO lpht = (PMCHITTESTINFO)lParam; UINT x,y; @@ -1693,7 +1693,7 @@ MONTHCAL_Paint(MONTHCAL_INFO *infoPtr, WPARAM wParam) static LRESULT -MONTHCAL_KillFocus(MONTHCAL_INFO *infoPtr) +MONTHCAL_KillFocus(const MONTHCAL_INFO *infoPtr) { TRACE("\n"); @@ -1704,7 +1704,7 @@ MONTHCAL_KillFocus(MONTHCAL_INFO *infoPtr) static LRESULT -MONTHCAL_SetFocus(MONTHCAL_INFO *infoPtr) +MONTHCAL_SetFocus(const MONTHCAL_INFO *infoPtr) { TRACE("\n"); @@ -1821,7 +1821,7 @@ static LRESULT MONTHCAL_Size(MONTHCAL_INFO *infoPtr, int Width, int Height) return 0; } -static LRESULT MONTHCAL_GetFont(MONTHCAL_INFO *infoPtr) +static LRESULT MONTHCAL_GetFont(const MONTHCAL_INFO *infoPtr) { return (LRESULT)infoPtr->hFont; } @@ -1847,7 +1847,7 @@ static LRESULT MONTHCAL_SetFont(MONTHCAL_INFO *infoPtr, HFONT hFont, BOOL redraw } /* update theme after a WM_THEMECHANGED message */ -static LRESULT theme_changed (MONTHCAL_INFO* infoPtr) +static LRESULT theme_changed (const MONTHCAL_INFO* infoPtr) { HTHEME theme = GetWindowTheme (infoPtr->hwndSelf); CloseThemeData (theme);
1
0
0
0
Paul Vriens : advapi32/tests: Add check to see if SetEntriesInAclW is implemented.
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: 81a95ff6eec9393d8497dd4615ae44e37d3d1112 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=81a95ff6eec9393d8497dd461…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Thu Mar 29 21:33:11 2007 +0200 advapi32/tests: Add check to see if SetEntriesInAclW is implemented. --- dlls/advapi32/tests/security.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 88c0d96..9aba94b 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -1709,7 +1709,12 @@ static void test_SetEntriesInAcl(void) DWORD res; res = SetEntriesInAclW(0, NULL, NULL, &acl); - ok(res == ERROR_SUCCESS, "SetEntriesInAcl failed: %u\n", res); + if(res == ERROR_CALL_NOT_IMPLEMENTED) + { + skip("SetEntriesInAclW is not implemented\n"); + return; + } + ok(res == ERROR_SUCCESS, "SetEntriesInAclW failed: %u\n", res); ok(acl == NULL, "acl=%p, expected NULL\n", acl); }
1
0
0
0
Paul Vriens : advapi32/tests: Add check to see if ImpersonateSelf is implemented.
by Alexandre Julliard
30 Mar '07
30 Mar '07
Module: wine Branch: master Commit: 33b8ec1cb5e222f9b8078d2e5d580cdf368a66fb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=33b8ec1cb5e222f9b8078d2e5…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Thu Mar 29 21:19:32 2007 +0200 advapi32/tests: Add check to see if ImpersonateSelf is implemented. --- dlls/advapi32/tests/security.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index cdf8084..88c0d96 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -1608,10 +1608,16 @@ static void test_impersonation_level(void) pDuplicateTokenEx = (fnDuplicateTokenEx) GetProcAddress(hmod, "DuplicateTokenEx"); if( !pDuplicateTokenEx ) { - skip("DuplicateTokenEx\n"); + skip("DuplicateTokenEx is not available\n"); return; } + SetLastError(0xdeadbeef); ret = ImpersonateSelf(SecurityAnonymous); + if(!ret && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)) + { + skip("ImpersonateSelf is not implemented\n"); + return; + } ok(ret, "ImpersonateSelf(SecurityAnonymous) failed with error %d\n", GetLastError()); ret = OpenThreadToken(GetCurrentThread(), TOKEN_QUERY | TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY_SOURCE | TOKEN_IMPERSONATE | TOKEN_ADJUST_DEFAULT, TRUE, &Token); ok(!ret, "OpenThreadToken should have failed\n");
1
0
0
0
← Newer
1
2
3
4
5
6
...
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