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
June 2009
----- 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
5 participants
1115 discussions
Start a n
N
ew thread
Nikolay Sivov : comctl32/listview: Get rid of Header_* macros.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 47bc142dad244d6013be7b5236a4a2234e467404 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=47bc142dad244d6013be7b523…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Sun Jun 14 22:29:46 2009 +0400 comctl32/listview: Get rid of Header_* macros. --- dlls/comctl32/listview.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 6fd3b71..60d5d63 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -7194,7 +7194,7 @@ static BOOL LISTVIEW_SetColumnT(const LISTVIEW_INFO *infoPtr, INT nColumn, { hdi.mask |= HDI_FORMAT; hdiget.mask = HDI_FORMAT; - if (Header_GetItemW(infoPtr->hwndHeader, nColumn, &hdiget)) + if (SendMessageW(infoPtr->hwndHeader, HDM_GETITEMW, nColumn, (LPARAM)&hdiget)) hdi.fmt = hdiget.fmt & HDF_STRING; } column_fill_hditem(infoPtr, &hdi, nColumn, lpColumn, isW); @@ -7330,7 +7330,7 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx) hdi.mask = HDI_TEXT; hdi.cchTextMax = DISP_TEXT_SIZE; hdi.pszText = szDispText; - if (Header_GetItemW(infoPtr->hwndHeader, nColumn, &hdi)) + if (SendMessageW(infoPtr->hwndHeader, HDM_GETITEMW, nColumn, (LPARAM)&hdi)) { HDC hdc = GetDC(infoPtr->hwndSelf); HFONT old_font = SelectObject(hdc, (HFONT)SendMessageW(infoPtr->hwndHeader, WM_GETFONT, 0, 0)); @@ -7352,7 +7352,7 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx) hdi.mask = HDI_WIDTH; hdi.cxy = cx; TRACE("hdi.cxy=%d\n", hdi.cxy); - return Header_SetItemW(infoPtr->hwndHeader, nColumn, &hdi); + return SendMessageW(infoPtr->hwndHeader, HDM_SETITEMW, nColumn, (LPARAM)&hdi); } /*** @@ -9258,7 +9258,7 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE HDITEMW hdi; hdi.mask = HDI_WIDTH; - if (!Header_GetItemW(infoPtr->hwndHeader, lpnmh->iItem, &hdi)) return 0; + if (!SendMessageW(infoPtr->hwndHeader, HDM_GETITEMW, lpnmh->iItem, (LPARAM)&hdi)) return 0; cxy = hdi.cxy; } else
1
0
0
0
Nikolay Sivov : comctl32/listview: Don't offset subitems on painting.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: caa91dcbc7d6e226d0bdd03541827295fff675cb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=caa91dcbc7d6e226d0bdd0354…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Sun Jun 14 22:06:48 2009 +0400 comctl32/listview: Don't offset subitems on painting. --- dlls/comctl32/listview.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 835f251..6fd3b71 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4151,15 +4151,16 @@ static void LISTVIEW_RefreshReport(LISTVIEW_INFO *infoPtr, ITERATOR *i, HDC hdc, while(iterator_next(i)) { LISTVIEW_GetItemOrigin(infoPtr, i->nItem, &Position); - Position.x += Origin.x; Position.y += Origin.y; /* iterate through the invalidated columns */ while(iterator_next(&j)) { + LISTVIEW_GetHeaderRect(infoPtr, j.nItem, &rcItem); + Position.x = (j.nItem == 0) ? rcItem.left + Origin.x : Origin.x; + if (rgntype == COMPLEXREGION && !((infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT) && j.nItem == 0)) { - LISTVIEW_GetHeaderRect(infoPtr, j.nItem, &rcItem); rcItem.top = 0; rcItem.bottom = infoPtr->nItemHeight; OffsetRect(&rcItem, Position.x, Position.y);
1
0
0
0
Nikolay Sivov : comctl32/listview: Fix some hittest problems on LVS_EX_FULLROWSELECT.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 89f0bdff6e96a82adfa06c8b57c4abcea7ba327a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=89f0bdff6e96a82adfa06c8b5…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Sun Jun 14 20:40:42 2009 +0400 comctl32/listview: Fix some hittest problems on LVS_EX_FULLROWSELECT. --- dlls/comctl32/listview.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 2599abd..835f251 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -6643,6 +6643,8 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, /* for top/bottom only */ bounds.left = LVIR_BOUNDS; LISTVIEW_GetItemRect(infoPtr, iItem, &bounds); + opt.x = lpht->pt.x - Origin.x; + opt.y = lpht->pt.y; for (j = 0; j < DPA_GetPtrCount(infoPtr->hdpaColumns); j++) { @@ -6650,7 +6652,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, bounds.left = pRect->left; bounds.right = pRect->right; - if (PtInRect(&bounds, lpht->pt)) + if (PtInRect(&bounds, opt)) { lpht->iSubItem = j; break; @@ -6676,7 +6678,11 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, opt.y = lpht->pt.y - Position.y - Origin.y; if (infoPtr->uView == LV_VIEW_DETAILS) + { rcBounds = rcBox; + if (infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT) + opt.x = lpht->pt.x - Origin.x; + } else { UnionRect(&rcBounds, &rcIcon, &rcLabel);
1
0
0
0
Nikolay Sivov : comctl32/listview: Don' t offset item box to item position on LVS_EX_FULLROWSELECT if item isn' t in leftmost column.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 8372d1832ddbed597804ffb60d696dfd776fd4cb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8372d1832ddbed597804ffb60…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Sun Jun 14 20:08:54 2009 +0400 comctl32/listview: Don't offset item box to item position on LVS_EX_FULLROWSELECT if item isn't in leftmost column. --- dlls/comctl32/listview.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 8ef516a..2599abd 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -2249,7 +2249,13 @@ static void LISTVIEW_GetItemBox(const LISTVIEW_INFO *infoPtr, INT nItem, LPRECT } LISTVIEW_GetItemMetrics(infoPtr, &lvItem, lprcBox, 0, 0, 0, 0); - OffsetRect(lprcBox, Position.x + Origin.x, Position.y + Origin.y); + if (infoPtr->uView == LV_VIEW_DETAILS && infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT && + SendMessageW(infoPtr->hwndHeader, HDM_ORDERTOINDEX, 0, 0)) + { + OffsetRect(lprcBox, Origin.x, Position.y + Origin.y); + } + else + OffsetRect(lprcBox, Position.x + Origin.x, Position.y + Origin.y); }
1
0
0
0
Frédéric Delanoy : documentation: Keep README. fr in sync.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 9c02be0ccbcb582dad3c6eb8f98b127ce3ef676c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c02be0ccbcb582dad3c6eb8f…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Sun Jun 14 22:43:24 2009 +0200 documentation: Keep README.fr in sync. --- documentation/README.fr | 233 ++++++++++++++++++++++------------------------- 1 files changed, 108 insertions(+), 125 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=9c02be0ccbcb582dad3c6…
1
0
0
0
Marcus Meissner : ddraw: Use correct union member.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 882716e78b7202c0fdf6f999277ec4856231581e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=882716e78b7202c0fdf6f9992…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Jun 14 14:32:11 2009 +0200 ddraw: Use correct union member. --- dlls/ddraw/executebuffer.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c index 3ff794d..73e0657 100644 --- a/dlls/ddraw/executebuffer.c +++ b/dlls/ddraw/executebuffer.c @@ -227,14 +227,14 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This, } else if(lpDevice->Handles[ci->u2.dwArg[0] - 1].type != DDrawHandle_Matrix) { ERR("Handle %d is not a matrix handle\n", ci->u2.dwArg[0]); } else { - if(ci->u1.drstRenderStateType == D3DTRANSFORMSTATE_WORLD) + if(ci->u1.dtstTransformStateType == D3DTRANSFORMSTATE_WORLD) lpDevice->world = ci->u2.dwArg[0]; - if(ci->u1.drstRenderStateType == D3DTRANSFORMSTATE_VIEW) + if(ci->u1.dtstTransformStateType == D3DTRANSFORMSTATE_VIEW) lpDevice->view = ci->u2.dwArg[0]; - if(ci->u1.drstRenderStateType == D3DTRANSFORMSTATE_PROJECTION) + if(ci->u1.dtstTransformStateType == D3DTRANSFORMSTATE_PROJECTION) lpDevice->proj = ci->u2.dwArg[0]; IDirect3DDevice7_SetTransform((IDirect3DDevice7 *)lpDevice, - ci->u1.drstRenderStateType, (LPD3DMATRIX)lpDevice->Handles[ci->u2.dwArg[0] - 1].ptr); + ci->u1.dtstTransformStateType, (LPD3DMATRIX)lpDevice->Handles[ci->u2.dwArg[0] - 1].ptr); } instr += size; }
1
0
0
0
Detlef Riekenberg : urlmon/tests: Move SecurityManager and ZoneManager tests to a separate file.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 387f24f467888a1c808c4b43edda7546959d567b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=387f24f467888a1c808c4b43e…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Sat Jun 13 15:20:00 2009 +0200 urlmon/tests: Move SecurityManager and ZoneManager tests to a separate file. --- dlls/mshtml/tests/dom.c | 2 +- dlls/mshtml/tests/script.c | 2 +- dlls/urlmon/tests/Makefile.in | 1 + dlls/urlmon/tests/misc.c | 271 --------------------------------- dlls/urlmon/tests/sec_mgr.c | 335 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 338 insertions(+), 273 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=387f24f467888a1c808c4…
1
0
0
0
Austin English : configure: Add a note about missing dbus if libhal is missing.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 41ca554d1a837b6bfd8c8b7bb70f80a32965a9f6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=41ca554d1a837b6bfd8c8b7bb…
Author: Austin English <austinenglish(a)gmail.com> Date: Fri Jun 12 13:03:56 2009 -0500 configure: Add a note about missing dbus if libhal is missing. --- configure | 6 +++--- configure.ac | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 73ced57..7d18ad5 100755 --- a/configure +++ b/configure @@ -13028,11 +13028,11 @@ fi fi if test "x$ac_cv_lib_soname_hal" = "x"; then case "x$with_hal" in - x) wine_notices="$wine_notices|libhal ${notice_platform}development files not found, no dynamic device support." ;; + x) wine_notices="$wine_notices|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;; xno) ;; - *) { { $as_echo "$as_me:$LINENO: error: libhal ${notice_platform}development files not found, no dynamic device support. + *) { { $as_echo "$as_me:$LINENO: error: libhal/libdbus ${notice_platform}development files not found, no dynamic device support. This is an error since --with-hal was requested." >&5 -$as_echo "$as_me: error: libhal ${notice_platform}development files not found, no dynamic device support. +$as_echo "$as_me: error: libhal/libdbus ${notice_platform}development files not found, no dynamic device support. This is an error since --with-hal was requested." >&2;} { (exit 1); exit 1; }; } ;; esac diff --git a/configure.ac b/configure.ac index 258a864..bef311e 100644 --- a/configure.ac +++ b/configure.ac @@ -1006,7 +1006,7 @@ then CPPFLAGS="$ac_save_CPPFLAGS" fi WINE_NOTICE_WITH(hal,[test "x$ac_cv_lib_soname_hal" = "x"], - [libhal ${notice_platform}development files not found, no dynamic device support.]) + [libhal/libdbus ${notice_platform}development files not found, no dynamic device support.]) dnl **** Check for libgnutls **** if test "x$with_gnutls" != "xno"
1
0
0
0
Andrew Talbot : crypt32: Constify some variables.
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 465a583f273668fe3e818d351bb105b606267d77 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=465a583f273668fe3e818d351…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Fri Jun 12 18:27:56 2009 +0100 crypt32: Constify some variables. --- dlls/crypt32/context.c | 4 ++-- dlls/crypt32/crypt32_private.h | 2 +- dlls/crypt32/encode.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c index f7ebebb..bb87799 100644 --- a/dlls/crypt32/context.c +++ b/dlls/crypt32/context.c @@ -201,7 +201,7 @@ struct ContextList *ContextList_Create( return list; } -static inline struct list *ContextList_ContextToEntry(struct ContextList *list, +static inline struct list *ContextList_ContextToEntry(const struct ContextList *list, const void *context) { struct list *ret; @@ -213,7 +213,7 @@ static inline struct list *ContextList_ContextToEntry(struct ContextList *list, return ret; } -static inline void *ContextList_EntryToContext(struct ContextList *list, +static inline void *ContextList_EntryToContext(const struct ContextList *list, struct list *entry) { return (LPBYTE)entry - sizeof(LINK_CONTEXT) - list->contextSize; diff --git a/dlls/crypt32/crypt32_private.h b/dlls/crypt32/crypt32_private.h index 46d4797..07c6382 100644 --- a/dlls/crypt32/crypt32_private.h +++ b/dlls/crypt32/crypt32_private.h @@ -79,7 +79,7 @@ typedef struct _CRYPT_DIGESTED_DATA CRYPT_HASH_BLOB hash; } CRYPT_DIGESTED_DATA; -BOOL CRYPT_AsnEncodePKCSDigestedData(CRYPT_DIGESTED_DATA *digestedData, +BOOL CRYPT_AsnEncodePKCSDigestedData(const CRYPT_DIGESTED_DATA *digestedData, void *pvData, DWORD *pcbData); typedef struct _CRYPT_SIGNED_INFO diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c index 14d193f..67a0155 100644 --- a/dlls/crypt32/encode.c +++ b/dlls/crypt32/encode.c @@ -1078,7 +1078,7 @@ static BOOL WINAPI CRYPT_AsnEncodeNameValue(DWORD dwCertEncodingType, } static BOOL CRYPT_AsnEncodeRdnAttr(DWORD dwCertEncodingType, - CERT_RDN_ATTR *attr, CryptEncodeObjectExFunc nameValueEncodeFunc, + const CERT_RDN_ATTR *attr, CryptEncodeObjectExFunc nameValueEncodeFunc, BYTE *pbEncoded, DWORD *pcbEncoded) { DWORD bytesNeeded = 0, lenBytes, size; @@ -1268,7 +1268,7 @@ static BOOL WINAPI CRYPT_DEREncodeItemsAsSet(DWORD dwCertEncodingType, return ret; } -static BOOL CRYPT_AsnEncodeRdn(DWORD dwCertEncodingType, CERT_RDN *rdn, +static BOOL CRYPT_AsnEncodeRdn(DWORD dwCertEncodingType, const CERT_RDN *rdn, CryptEncodeObjectExFunc nameValueEncodeFunc, BYTE *pbEncoded, DWORD *pcbEncoded) { @@ -1881,7 +1881,7 @@ static BOOL WINAPI CRYPT_AsnEncodePKCSContentInfoInternal( cItem, dwFlags, pEncodePara, pbEncoded, pcbEncoded); } -BOOL CRYPT_AsnEncodePKCSDigestedData(CRYPT_DIGESTED_DATA *digestedData, +BOOL CRYPT_AsnEncodePKCSDigestedData(const CRYPT_DIGESTED_DATA *digestedData, void *pvData, DWORD *pcbData) { struct AsnEncodeSequenceItem items[] = {
1
0
0
0
Francois Gouget : cmd: Replace malloc() with HeapAlloc().
by Alexandre Julliard
15 Jun '09
15 Jun '09
Module: wine Branch: master Commit: 0c01b71a4e0eaefb9afee0fdc465b9b368c42a71 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0c01b71a4e0eaefb9afee0fdc…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Jun 15 10:59:45 2009 +0200 cmd: Replace malloc() with HeapAlloc(). --- programs/cmd/builtins.c | 2 +- programs/cmd/wcmdmain.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index bcdf840..0e99f52 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -1033,7 +1033,7 @@ void WCMD_part_execute(CMD_LIST **cmdList, WCHAR *firstcmd, WCHAR *variable, if (conditionTRUE && firstcmd && *firstcmd) { WCHAR *command = WCMD_strdupW(firstcmd); WCMD_execute (firstcmd, (*cmdList)->redirects, variable, value, cmdList); - free (command); + HeapFree(GetProcessHeap(), 0, command); } diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 7d3e526..d3aea6d 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -416,8 +416,7 @@ static void WCMD_show_prompt (void) { */ WCHAR *WCMD_strdupW(WCHAR *input) { int len=strlenW(input)+1; - /* Note: Use malloc not HeapAlloc to emulate strdup */ - WCHAR *result = malloc(len * sizeof(WCHAR)); + WCHAR *result = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); memcpy(result, input, len * sizeof(WCHAR)); return result; } @@ -749,9 +748,9 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start, WCHAR *forVar, WCHAR *forVal) { thisVarContents + (lastFound-searchIn)); strcatW(outputposn, s); } - free(s); - free(searchIn); - free(searchFor); + HeapFree(GetProcessHeap(), 0, s); + HeapFree(GetProcessHeap(), 0, searchIn); + HeapFree(GetProcessHeap(), 0, searchFor); return start; } return start+1;
1
0
0
0
← Newer
1
...
64
65
66
67
68
69
70
...
112
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
105
106
107
108
109
110
111
112
Results per page:
10
25
50
100
200