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 2010
----- 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
919 discussions
Start a n
N
ew thread
Mikhail Maroukhine : user32: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: 819464f1d90f1ca1c6e9efd2dcd3d45e7c4b47a4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=819464f1d90f1ca1c6e9efd2d…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sun Mar 28 16:15:00 2010 +0700 user32: Fix compiler warnings with flag -Wcast-qual. --- dlls/user32/menu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c index 6e7e663..1444f84 100644 --- a/dlls/user32/menu.c +++ b/dlls/user32/menu.c @@ -4728,7 +4728,7 @@ BOOL WINAPI SetMenuItemInfoA(HMENU hmenu, UINT item, BOOL bypos, TRACE("hmenu %p, item %u, by pos %d, info %p\n", hmenu, item, bypos, lpmii); - if (!MENU_NormalizeMenuItemInfoStruct( (MENUITEMINFOW *)lpmii, &mii )) return FALSE; + if (!MENU_NormalizeMenuItemInfoStruct( (const MENUITEMINFOW *)lpmii, &mii )) return FALSE; return SetMenuItemInfo_common(MENU_FindItem(&hmenu, &item, bypos? MF_BYPOSITION : 0), &mii, FALSE); @@ -4851,7 +4851,7 @@ BOOL WINAPI InsertMenuItemA(HMENU hMenu, UINT uItem, BOOL bypos, TRACE("hmenu %p, item %04x, by pos %d, info %p\n", hMenu, uItem, bypos, lpmii); - if (!MENU_NormalizeMenuItemInfoStruct( (MENUITEMINFOW *)lpmii, &mii )) return FALSE; + if (!MENU_NormalizeMenuItemInfoStruct( (const MENUITEMINFOW *)lpmii, &mii )) return FALSE; item = MENU_InsertItem(hMenu, uItem, bypos ? MF_BYPOSITION : 0 ); return SetMenuItemInfo_common(item, &mii, FALSE);
1
0
0
0
Mikhail Maroukhine : shlwapi: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: 95100a6e92f428b74d8bbba7c08aac8f163ced11 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=95100a6e92f428b74d8bbba7c…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sun Mar 28 15:26:11 2010 +0700 shlwapi: Fix compiler warnings with flag -Wcast-qual. --- dlls/shlwapi/url.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index 4d064b6..d6487b3 100644 --- a/dlls/shlwapi/url.c +++ b/dlls/shlwapi/url.c @@ -278,7 +278,8 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized, { HRESULT hr = S_OK; DWORD EscapeFlags; - LPWSTR lpszUrlCpy, wk1, wk2, mp, mp2, root; + LPCWSTR wk1, root; + LPWSTR lpszUrlCpy, wk2, mp, mp2; INT state; DWORD nByteLen, nLen, nWkLen; WCHAR slash = '/'; @@ -322,7 +323,7 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized, * 6 have location (found /) save root location */ - wk1 = (LPWSTR)pszUrl; + wk1 = pszUrl; wk2 = lpszUrlCpy; state = 0;
1
0
0
0
Mikhail Maroukhine : shell32: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: cc7eaa3293fff5b36c986b4ce961037944c673f8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cc7eaa3293fff5b36c986b4ce…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sun Mar 28 14:57:39 2010 +0700 shell32: Fix compiler warnings with flag -Wcast-qual. --- dlls/shell32/debughlp.c | 44 ++++++++++++++++++++++---------------------- dlls/shell32/shlexec.c | 5 +++-- dlls/shell32/trash.c | 2 +- 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/dlls/shell32/debughlp.c b/dlls/shell32/debughlp.c index 3cab8bb..f5d64c3 100644 --- a/dlls/shell32/debughlp.c +++ b/dlls/shell32/debughlp.c @@ -35,7 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(pidl); static -LPITEMIDLIST _dbg_ILGetNext(LPCITEMIDLIST pidl) +LPCITEMIDLIST _dbg_ILGetNext(LPCITEMIDLIST pidl) { WORD len; @@ -44,7 +44,7 @@ LPITEMIDLIST _dbg_ILGetNext(LPCITEMIDLIST pidl) len = pidl->mkid.cb; if (len) { - return (LPITEMIDLIST) (((LPBYTE)pidl)+len); + return (LPCITEMIDLIST) (((const BYTE*)pidl)+len); } } return NULL; @@ -57,17 +57,17 @@ BOOL _dbg_ILIsDesktop(LPCITEMIDLIST pidl) } static -LPPIDLDATA _dbg_ILGetDataPointer(LPCITEMIDLIST pidl) +const PIDLDATA* _dbg_ILGetDataPointer(LPCITEMIDLIST pidl) { if(pidl && pidl->mkid.cb != 0x00) - return (LPPIDLDATA)pidl->mkid.abID; + return (const PIDLDATA*)pidl->mkid.abID; return NULL; } static -LPSTR _dbg_ILGetTextPointer(LPCITEMIDLIST pidl) +LPCSTR _dbg_ILGetTextPointer(LPCITEMIDLIST pidl) { - LPPIDLDATA pdata =_dbg_ILGetDataPointer(pidl); + const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl); if (pdata) { @@ -103,9 +103,9 @@ LPSTR _dbg_ILGetTextPointer(LPCITEMIDLIST pidl) } static -LPWSTR _dbg_ILGetTextPointerW(LPCITEMIDLIST pidl) +LPCWSTR _dbg_ILGetTextPointerW(LPCITEMIDLIST pidl) { - LPPIDLDATA pdata =_dbg_ILGetDataPointer(pidl); + const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl); if (pdata) { @@ -140,7 +140,7 @@ LPWSTR _dbg_ILGetTextPointerW(LPCITEMIDLIST pidl) return NULL; case PT_VALUEW: - return (LPWSTR)pdata->u.file.szNames; + return (LPCWSTR)pdata->u.file.szNames; } } return NULL; @@ -148,9 +148,9 @@ LPWSTR _dbg_ILGetTextPointerW(LPCITEMIDLIST pidl) static -LPSTR _dbg_ILGetSTextPointer(LPCITEMIDLIST pidl) +LPCSTR _dbg_ILGetSTextPointer(LPCITEMIDLIST pidl) { - LPPIDLDATA pdata =_dbg_ILGetDataPointer(pidl); + const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl); if (pdata) { @@ -170,9 +170,9 @@ LPSTR _dbg_ILGetSTextPointer(LPCITEMIDLIST pidl) } static -LPWSTR _dbg_ILGetSTextPointerW(LPCITEMIDLIST pidl) +LPCWSTR _dbg_ILGetSTextPointerW(LPCITEMIDLIST pidl) { - LPPIDLDATA pdata =_dbg_ILGetDataPointer(pidl); + const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl); if (pdata) { @@ -190,7 +190,7 @@ LPWSTR _dbg_ILGetSTextPointerW(LPCITEMIDLIST pidl) return NULL; case PT_VALUEW: - return (LPWSTR)(pdata->u.file.szNames + lstrlenW ((LPWSTR)pdata->u.file.szNames) + 1); + return (LPCWSTR)(pdata->u.file.szNames + lstrlenW ((LPCWSTR)pdata->u.file.szNames) + 1); } } return NULL; @@ -218,8 +218,8 @@ IID* _dbg_ILGetGUIDPointer(LPCITEMIDLIST pidl) static void _dbg_ILSimpleGetText (LPCITEMIDLIST pidl, LPSTR szOut, UINT uOutSize) { - LPSTR szSrc; - LPWSTR szSrcW; + LPCSTR szSrc; + LPCWSTR szSrcW; GUID const * riid; if (!pidl) return; @@ -277,10 +277,10 @@ void pdump (LPCITEMIDLIST pidl) if (_ILIsUnicode(pidltemp)) { DWORD dwAttrib = 0; - LPPIDLDATA pData = _dbg_ILGetDataPointer(pidltemp); + const PIDLDATA* pData = _dbg_ILGetDataPointer(pidltemp); DWORD type = pData ? pData->type : 0; - LPWSTR szLongName = _dbg_ILGetTextPointerW(pidltemp); - LPWSTR szShortName = _dbg_ILGetSTextPointerW(pidltemp); + LPCWSTR szLongName = _dbg_ILGetTextPointerW(pidltemp); + LPCWSTR szShortName = _dbg_ILGetSTextPointerW(pidltemp); char szName[MAX_PATH]; _dbg_ILSimpleGetText(pidltemp, szName, MAX_PATH); @@ -294,10 +294,10 @@ void pdump (LPCITEMIDLIST pidl) else { DWORD dwAttrib = 0; - LPPIDLDATA pData = _dbg_ILGetDataPointer(pidltemp); + const PIDLDATA* pData = _dbg_ILGetDataPointer(pidltemp); DWORD type = pData ? pData->type : 0; - LPSTR szLongName = _dbg_ILGetTextPointer(pidltemp); - LPSTR szShortName = _dbg_ILGetSTextPointer(pidltemp); + LPCSTR szLongName = _dbg_ILGetTextPointer(pidltemp); + LPCSTR szShortName = _dbg_ILGetSTextPointer(pidltemp); char szName[MAX_PATH]; _dbg_ILSimpleGetText(pidltemp, szName, MAX_PATH); diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c index 19ad1b3..ff07550 100644 --- a/dlls/shell32/shlexec.c +++ b/dlls/shell32/shlexec.c @@ -809,8 +809,9 @@ static unsigned dde_connect(const WCHAR* key, const WCHAR* start, WCHAR* ddeexec } else { - LPWSTR p,space; - for (p=(LPWSTR)start; (space=strchrW(p, ' ')); p=space+1) + LPCWSTR p; + LPWSTR space; + for (p=start; (space=strchrW(p, ' ')); p=space+1) { int idx = space-start; memcpy(command, start, idx*sizeof(WCHAR)); diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c index 6f9cae4..99e7d7e 100644 --- a/dlls/shell32/trash.c +++ b/dlls/shell32/trash.c @@ -358,7 +358,7 @@ HRESULT TRASH_UnpackItemID(LPCSHITEMID id, WIN32_FIND_DATAW *data) return E_INVALIDARG; if (data != NULL) - *data = *(WIN32_FIND_DATAW *)(id->abID+1); + *data = *(const WIN32_FIND_DATAW *)(id->abID+1); return S_OK; }
1
0
0
0
Mikhail Maroukhine : rsaenh: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: dc525dabd6820830df0ee8ea4d73656cc77adef1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dc525dabd6820830df0ee8ea4…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 22:49:24 2010 +0600 rsaenh: Fix compiler warnings with flag -Wcast-qual. --- dlls/rsaenh/sha2.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/rsaenh/sha2.c b/dlls/rsaenh/sha2.c index 6c1a2e6..ea5bb28 100644 --- a/dlls/rsaenh/sha2.c +++ b/dlls/rsaenh/sha2.c @@ -490,7 +490,7 @@ void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) { } while (len >= SHA256_BLOCK_LENGTH) { /* Process as many complete blocks as we can */ - SHA256_Transform(context, (sha2_word32*)data); + SHA256_Transform(context, (const sha2_word32*)data); context->bitcount += SHA256_BLOCK_LENGTH << 3; len -= SHA256_BLOCK_LENGTH; data += SHA256_BLOCK_LENGTH; @@ -812,7 +812,7 @@ void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) { } while (len >= SHA512_BLOCK_LENGTH) { /* Process as many complete blocks as we can */ - SHA512_Transform(context, (sha2_word64*)data); + SHA512_Transform(context, (const sha2_word64*)data); ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); len -= SHA512_BLOCK_LENGTH; data += SHA512_BLOCK_LENGTH;
1
0
0
0
Mikhail Maroukhine : ole: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: feb257dce0d93d4d0ed46c798b26809e2348f7c5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=feb257dce0d93d4d0ed46c798…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 22:26:49 2010 +0600 ole: Fix compiler warnings with flag -Wcast-qual. --- dlls/oleaut32/olepicture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 7a5bc29..c7a3411 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -1273,7 +1273,7 @@ static HRESULT OLEPictureImpl_LoadEnhMetafile(OLEPictureImpl *This, static HRESULT OLEPictureImpl_LoadAPM(OLEPictureImpl *This, const BYTE *data, ULONG size) { - APM_HEADER *header = (APM_HEADER *)data; + const APM_HEADER *header = (const APM_HEADER *)data; HMETAFILE hmf; if (size < sizeof(APM_HEADER))
1
0
0
0
Mikhail Maroukhine : ntdll: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: 2b8f11b8c0a1f00b9087d0c52212792d65258e9d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2b8f11b8c0a1f00b9087d0c52…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 21:41:14 2010 +0600 ntdll: Fix compiler warnings with flag -Wcast-qual. --- dlls/ntdll/heap.c | 8 ++++---- dlls/ntdll/loader.c | 4 ++-- dlls/ntdll/rtlstr.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index e49e77a..15dd85c 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -1261,15 +1261,15 @@ static BOOL HEAP_ValidateInUseArena( const SUBHEAP *subheap, const ARENA_INUSE * /* Check unused bytes */ if (pArena->magic == ARENA_PENDING_MAGIC) { - DWORD *ptr = (DWORD *)(pArena + 1); - DWORD *end = (DWORD *)((char *)ptr + size); + const DWORD *ptr = (const DWORD *)(pArena + 1); + const DWORD *end = (const DWORD *)((const char *)ptr + size); while (ptr < end) { if (*ptr != ARENA_FREE_FILLER) { ERR("Heap %p: free block %p overwritten at %p by %08x\n", - subheap->heap, (ARENA_INUSE *)pArena + 1, ptr, *ptr ); + subheap->heap, (const ARENA_INUSE *)pArena + 1, ptr, *ptr ); if (!*ptr) { HEAP_Dump( subheap->heap ); DbgBreakPoint(); } return FALSE; } @@ -1398,7 +1398,7 @@ static BOOL validate_block_pointer( HEAP *heap, SUBHEAP **ret_subheap, const ARE return TRUE; } - if ((char *)arena < (char *)subheap->base + subheap->headerSize) + if ((const char *)arena < (char *)subheap->base + subheap->headerSize) WARN( "Heap %p: pointer %p is inside subheap %p header\n", subheap->heap, arena + 1, subheap ); else if (subheap->heap->flags & HEAP_VALIDATE) /* do the full validation */ ret = HEAP_ValidateInUseArena( subheap, arena, QUIET ); diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 1723f18..74e873b 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -2688,7 +2688,7 @@ PVOID WINAPI RtlImageDirectoryEntryToData( HMODULE module, BOOL image, WORD dir, if (!(nt = RtlImageNtHeader( module ))) return NULL; if (nt->OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR64_MAGIC) { - const IMAGE_NT_HEADERS64 *nt64 = (IMAGE_NT_HEADERS64 *)nt; + const IMAGE_NT_HEADERS64 *nt64 = (const IMAGE_NT_HEADERS64 *)nt; if (dir >= nt64->OptionalHeader.NumberOfRvaAndSizes) return NULL; if (!(addr = nt64->OptionalHeader.DataDirectory[dir].VirtualAddress)) return NULL; @@ -2697,7 +2697,7 @@ PVOID WINAPI RtlImageDirectoryEntryToData( HMODULE module, BOOL image, WORD dir, } else if (nt->OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC) { - const IMAGE_NT_HEADERS32 *nt32 = (IMAGE_NT_HEADERS32 *)nt; + const IMAGE_NT_HEADERS32 *nt32 = (const IMAGE_NT_HEADERS32 *)nt; if (dir >= nt32->OptionalHeader.NumberOfRvaAndSizes) return NULL; if (!(addr = nt32->OptionalHeader.DataDirectory[dir].VirtualAddress)) return NULL; diff --git a/dlls/ntdll/rtlstr.c b/dlls/ntdll/rtlstr.c index 14993f2..4e9614c 100644 --- a/dlls/ntdll/rtlstr.c +++ b/dlls/ntdll/rtlstr.c @@ -1617,7 +1617,7 @@ BOOLEAN WINAPI RtlIsTextUnicode( LPCVOID buf, INT len, INT *pf ) /* Check for an odd length ... pass if even. */ if (len & 1) out_flags |= IS_TEXT_UNICODE_ODD_LENGTH; - if (((char *)buf)[len - 1] == 0) + if (((const char *)buf)[len - 1] == 0) len--; /* Windows seems to do something like that to avoid e.g. false IS_TEXT_UNICODE_NULL_BYTES */ len /= sizeof(WCHAR);
1
0
0
0
Mikhail Maroukhine : msxml3: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: 88cca2cf765b38dd762ff180804e02efd805fc7a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=88cca2cf765b38dd762ff1808…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 21:19:45 2010 +0600 msxml3: Fix compiler warnings with flag -Wcast-qual. --- dlls/msxml3/dispex.c | 4 ++-- dlls/msxml3/main.c | 2 +- dlls/msxml3/node.c | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dlls/msxml3/dispex.c b/dlls/msxml3/dispex.c index 529f9a4..09b71fe 100644 --- a/dlls/msxml3/dispex.c +++ b/dlls/msxml3/dispex.c @@ -196,12 +196,12 @@ static void add_func_info(dispex_data_t *data, DWORD *size, tid_t tid, DISPID id static int dispid_cmp(const void *p1, const void *p2) { - return ((func_info_t*)p1)->id - ((func_info_t*)p2)->id; + return ((const func_info_t*)p1)->id - ((const func_info_t*)p2)->id; } static int func_name_cmp(const void *p1, const void *p2) { - return strcmpiW((*(func_info_t**)p1)->name, (*(func_info_t**)p2)->name); + return strcmpiW((*(func_info_t* const*)p1)->name, (*(func_info_t* const*)p2)->name); } static dispex_data_t *preprocess_dispex_data(DispatchEx *This) diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c index 9b1eb82..60b0cbd 100644 --- a/dlls/msxml3/main.c +++ b/dlls/msxml3/main.c @@ -62,7 +62,7 @@ static int wineXmlMatchCallback (char const * filename) static void *wineXmlOpenCallback (char const * filename) { - BSTR sFilename = bstr_from_xmlChar( (xmlChar*)filename); + BSTR sFilename = bstr_from_xmlChar( (const xmlChar*)filename); HANDLE hFile; TRACE("%s\n", debugstr_w(sFilename)); diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index b05f06e..500fb94 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -1190,8 +1190,8 @@ static HRESULT WINAPI xmlnode_get_dataType( switch ( This->node->type ) { case XML_ELEMENT_NODE: - pVal = xmlGetNsProp(This->node, (xmlChar*)"dt", - (xmlChar*)"urn:schemas-microsoft-com:datatypes"); + pVal = xmlGetNsProp(This->node, (const xmlChar*)"dt", + (const xmlChar*)"urn:schemas-microsoft-com:datatypes"); if (pVal) { V_VT(dataTypeName) = VT_BSTR; @@ -1260,20 +1260,20 @@ static HRESULT WINAPI xmlnode_put_dataType( xmlAttrPtr pAttr = NULL; xmlChar* str = xmlChar_from_wchar(dataTypeName); - pAttr = xmlHasNsProp(This->node, (xmlChar*)"dt", - (xmlChar*)"urn:schemas-microsoft-com:datatypes"); + pAttr = xmlHasNsProp(This->node, (const xmlChar*)"dt", + (const xmlChar*)"urn:schemas-microsoft-com:datatypes"); if (pAttr) { - pAttr = xmlSetNsProp(This->node, pAttr->ns, (xmlChar*)"dt", str); + pAttr = xmlSetNsProp(This->node, pAttr->ns, (const xmlChar*)"dt", str); hr = S_OK; } else { - pNS = xmlNewNs(This->node, (xmlChar*)"urn:schemas-microsoft-com:datatypes", (xmlChar*)"dt"); + pNS = xmlNewNs(This->node, (const xmlChar*)"urn:schemas-microsoft-com:datatypes", (const xmlChar*)"dt"); if(pNS) { - pAttr = xmlNewNsProp(This->node, pNS, (xmlChar*)"dt", str); + pAttr = xmlNewNsProp(This->node, pNS, (const xmlChar*)"dt", str); if(pAttr) { xmlAddChild(This->node, (xmlNodePtr)pAttr); @@ -1402,7 +1402,7 @@ static HRESULT WINAPI xmlnode_get_xml( /* Attribute Nodes return a space in front of their name */ pContent = xmlBufferContent(pXmlBuf); - if( ((char*)pContent)[0] == ' ') + if( ((const char*)pContent)[0] == ' ') bstrContent = bstr_from_xmlChar(pContent+1); else bstrContent = bstr_from_xmlChar(pContent);
1
0
0
0
Mikhail Maroukhine : msi: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: 86f76d2b489579b547ab51380dda33db9307d04a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=86f76d2b489579b547ab51380…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 20:48:20 2010 +0600 msi: Fix compiler warnings with flag -Wcast-qual. --- dlls/msi/action.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 75bbc09..a7a9596 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -4336,7 +4336,7 @@ static UINT ACTION_PublishFeatures(MSIPACKAGE *package) { size += sizeof(WCHAR); RegSetValueExW(hkey,feature->Feature,0,REG_SZ, - (LPBYTE)(feature->Feature_Parent ? feature->Feature_Parent : szEmpty),size); + (const BYTE*)(feature->Feature_Parent ? feature->Feature_Parent : szEmpty),size); } else {
1
0
0
0
Mikhail Maroukhine : mshtml: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: 491a06d987221706e9020dbbfddb96718ce63f12 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=491a06d987221706e9020dbbf…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 19:58:41 2010 +0600 mshtml: Fix compiler warnings with flag -Wcast-qual. --- dlls/mshtml/dispex.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c index 3917b30..de0c948 100644 --- a/dlls/mshtml/dispex.c +++ b/dlls/mshtml/dispex.c @@ -248,12 +248,12 @@ static void add_func_info(dispex_data_t *data, DWORD *size, tid_t tid, const FUN static int dispid_cmp(const void *p1, const void *p2) { - return ((func_info_t*)p1)->id - ((func_info_t*)p2)->id; + return ((const func_info_t*)p1)->id - ((const func_info_t*)p2)->id; } static int func_name_cmp(const void *p1, const void *p2) { - return strcmpiW((*(func_info_t**)p1)->name, (*(func_info_t**)p2)->name); + return strcmpiW((*(func_info_t* const*)p1)->name, (*(func_info_t* const*)p2)->name); } static dispex_data_t *preprocess_dispex_data(DispatchEx *This) @@ -322,7 +322,7 @@ static dispex_data_t *preprocess_dispex_data(DispatchEx *This) static int id_cmp(const void *p1, const void *p2) { - return *(DISPID*)p1 - *(DISPID*)p2; + return *(const DISPID*)p1 - *(const DISPID*)p2; } HRESULT get_dispids(tid_t tid, DWORD *ret_size, DISPID **ret)
1
0
0
0
Mikhail Maroukhine : msgsm32.acm: Fix compiler warnings with flag -Wcast-qual.
by Alexandre Julliard
29 Mar '10
29 Mar '10
Module: wine Branch: master Commit: 26cba0cb436694f55981ab2d5ebc34290f5f8482 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=26cba0cb436694f55981ab2d5…
Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 19:34:03 2010 +0600 msgsm32.acm: Fix compiler warnings with flag -Wcast-qual. --- dlls/msgsm32.acm/msgsm32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msgsm32.acm/msgsm32.c b/dlls/msgsm32.acm/msgsm32.c index e760ac3..12dfef9 100644 --- a/dlls/msgsm32.acm/msgsm32.c +++ b/dlls/msgsm32.acm/msgsm32.c @@ -179,10 +179,10 @@ static DWORD GSM_FormatValidate(const WAVEFORMATEX *wfx) WARN("GSM nBlockAlign %u\n", wfx->nBlockAlign); return 0; } - if (((GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock != 320) + if (((const GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock != 320) { WARN("GSM wSamplesPerBlock %u\n", - ((GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock); + ((const GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock); return 0; } if (wfx->nAvgBytesPerSec != wfx->nSamplesPerSec * 65 / 320)
1
0
0
0
← Newer
1
...
11
12
13
14
15
16
17
...
92
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
Results per page:
10
25
50
100
200