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
June
May
April
March
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
October 2007
----- 2025 -----
June 2025
May 2025
April 2025
March 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
4 participants
996 discussions
Start a n
N
ew thread
Juan Lang : wininet: Implement DeleteUrlCacheEntryW.
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: c527c7611a169986d65d3f14c31009e6ce690c36 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c527c7611a169986d65d3f14c…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 19 10:22:43 2007 -0700 wininet: Implement DeleteUrlCacheEntryW. --- dlls/wininet/urlcache.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 49 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index 4d0ceab..9887994 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -2528,7 +2528,55 @@ BOOL WINAPI DeleteUrlCacheEntryA(LPCSTR lpszUrlName) */ BOOL WINAPI DeleteUrlCacheEntryW(LPCWSTR lpszUrlName) { - FIXME("(%s) stub\n", debugstr_w(lpszUrlName)); + URLCACHECONTAINER * pContainer; + LPURLCACHE_HEADER pHeader; + CACHEFILE_ENTRY * pEntry; + LPSTR urlA; + int url_len; + + TRACE("(%s)\n", debugstr_w(lpszUrlName)); + + url_len = WideCharToMultiByte(CP_ACP, 0, lpszUrlName, -1, NULL, 0, NULL, NULL); + urlA = HeapAlloc(GetProcessHeap(), 0, url_len * sizeof(CHAR)); + if (!urlA) + { + SetLastError(ERROR_OUTOFMEMORY); + return FALSE; + } + WideCharToMultiByte(CP_ACP, 0, lpszUrlName, -1, urlA, url_len, NULL, NULL); + + if (!URLCacheContainers_FindContainerW(lpszUrlName, &pContainer)) + { + HeapFree(GetProcessHeap(), 0, urlA); + return FALSE; + } + if (!URLCacheContainer_OpenIndex(pContainer)) + { + HeapFree(GetProcessHeap(), 0, urlA); + return FALSE; + } + if (!(pHeader = URLCacheContainer_LockIndex(pContainer))) + { + HeapFree(GetProcessHeap(), 0, urlA); + return FALSE; + } + + if (!URLCache_FindEntryInHash(pHeader, urlA, &pEntry)) + { + URLCacheContainer_UnlockIndex(pContainer, pHeader); + TRACE("entry %s not found!\n", debugstr_a(urlA)); + HeapFree(GetProcessHeap(), 0, urlA); + SetLastError(ERROR_FILE_NOT_FOUND); + return FALSE; + } + + URLCache_DeleteEntry(pHeader, pEntry); + + URLCache_DeleteEntryFromHash(pHeader, urlA); + + URLCacheContainer_UnlockIndex(pContainer, pHeader); + + HeapFree(GetProcessHeap(), 0, urlA); return TRUE; }
1
0
0
0
Juan Lang : wininet: Implement IsUrlCacheEntryExpiredW.
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: d1559158615aed8e4e6048023dce89d9fe1e28c4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d1559158615aed8e4e6048023…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 19 10:22:15 2007 -0700 wininet: Implement IsUrlCacheEntryExpiredW. --- dlls/wininet/urlcache.c | 41 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 39 insertions(+), 2 deletions(-) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index a3c23ef..4d0ceab 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -2933,6 +2933,43 @@ BOOL WINAPI IsUrlCacheEntryExpiredA( LPCSTR url, DWORD dwFlags, FILETIME* pftLas */ BOOL WINAPI IsUrlCacheEntryExpiredW( LPCWSTR url, DWORD dwFlags, FILETIME* pftLastModified ) { - FIXME("(%s, %08x, %p) stub\n", debugstr_w(url), dwFlags, pftLastModified); - return FALSE; + LPURLCACHE_HEADER pHeader; + CACHEFILE_ENTRY * pEntry; + URL_CACHEFILE_ENTRY * pUrlEntry; + URLCACHECONTAINER * pContainer; + + TRACE("(%s, %08x, %p)\n", debugstr_w(url), dwFlags, pftLastModified); + + if (!URLCacheContainers_FindContainerW(url, &pContainer)) + return FALSE; + + if (!URLCacheContainer_OpenIndex(pContainer)) + return FALSE; + + if (!(pHeader = URLCacheContainer_LockIndex(pContainer))) + return FALSE; + + if (!URLCache_FindEntryInHashW(pHeader, url, &pEntry)) + { + URLCacheContainer_UnlockIndex(pContainer, pHeader); + TRACE("entry %s not found!\n", debugstr_w(url)); + SetLastError(ERROR_FILE_NOT_FOUND); + return FALSE; + } + + if (pEntry->dwSignature != URL_SIGNATURE) + { + URLCacheContainer_UnlockIndex(pContainer, pHeader); + FIXME("Trying to retrieve entry of unknown format %s\n", debugstr_an((LPSTR)&pEntry->dwSignature, sizeof(DWORD))); + SetLastError(ERROR_FILE_NOT_FOUND); + return FALSE; + } + + pUrlEntry = (URL_CACHEFILE_ENTRY *)pEntry; + + DosDateTimeToFileTime(pUrlEntry->wExpiredDate, pUrlEntry->wExpiredTime, pftLastModified); + + URLCacheContainer_UnlockIndex(pContainer, pHeader); + + return TRUE; }
1
0
0
0
Juan Lang : wininet: Add a URLCache_FindEntryInHashW helper, and use it to simplify finding an entry in a hash with a wide-character URL string .
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: 6fdec3d501af6ae02be1f671d3d8b86d8d6aa914 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6fdec3d501af6ae02be1f671d…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 19 10:21:40 2007 -0700 wininet: Add a URLCache_FindEntryInHashW helper, and use it to simplify finding an entry in a hash with a wide-character URL string. --- dlls/wininet/urlcache.c | 84 ++++++++++++++++++++--------------------------- 1 files changed, 36 insertions(+), 48 deletions(-) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index a3bf05f..a3c23ef 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -1186,6 +1186,38 @@ static BOOL URLCache_FindEntryInHash(LPCURLCACHE_HEADER pHeader, LPCSTR lpszUrl, } /*********************************************************************** + * URLCache_FindEntryInHashW (Internal) + * + * Searches all the hash tables in the index for the given URL and + * returns the entry, if it was found, in ppEntry + * + * RETURNS + * TRUE if the entry was found + * FALSE if the entry could not be found + * + */ +static BOOL URLCache_FindEntryInHashW(LPCURLCACHE_HEADER pHeader, LPCWSTR lpszUrl, CACHEFILE_ENTRY ** ppEntry) +{ + struct _HASH_ENTRY * pHashEntry; + LPSTR urlA; + int url_len; + BOOL ret; + + url_len = WideCharToMultiByte(CP_ACP, 0, lpszUrl, -1, NULL, 0, NULL, NULL); + urlA = HeapAlloc(GetProcessHeap(), 0, url_len * sizeof(CHAR)); + if (!urlA) + { + SetLastError(ERROR_OUTOFMEMORY); + return FALSE; + } + WideCharToMultiByte(CP_ACP, 0, lpszUrl, -1, urlA, url_len, NULL, NULL); + if ((ret = URLCache_FindHash(pHeader, urlA, &pHashEntry))) + *ppEntry = (CACHEFILE_ENTRY *)((LPBYTE)pHeader + pHashEntry->dwOffsetEntry); + HeapFree(GetProcessHeap(), 0, urlA); + return ret; +} + +/*********************************************************************** * URLCache_HashEntrySetUse (Internal) * * Searches all the hash tables in the index for the given URL and @@ -1432,47 +1464,25 @@ BOOL WINAPI GetUrlCacheEntryInfoW(LPCWSTR lpszUrl, CACHEFILE_ENTRY * pEntry; URL_CACHEFILE_ENTRY * pUrlEntry; URLCACHECONTAINER * pContainer; - LPSTR lpszUrlA; - int url_len; TRACE("(%s, %p, %p)\n", debugstr_w(lpszUrl), lpCacheEntryInfo, lpdwCacheEntryInfoBufferSize); - url_len = WideCharToMultiByte(CP_ACP, 0, lpszUrl, -1, NULL, 0, NULL, NULL); - lpszUrlA = HeapAlloc(GetProcessHeap(), 0, url_len * sizeof(CHAR)); - if (!lpszUrlA) - { - SetLastError(ERROR_OUTOFMEMORY); - return FALSE; - } - WideCharToMultiByte(CP_ACP, 0, lpszUrl, -1, lpszUrlA, url_len, NULL, NULL); - if (!URLCacheContainers_FindContainerW(lpszUrl, &pContainer)) - { - HeapFree(GetProcessHeap(), 0, lpszUrlA); return FALSE; - } if (!URLCacheContainer_OpenIndex(pContainer)) - { - HeapFree(GetProcessHeap(), 0, lpszUrlA); return FALSE; - } if (!(pHeader = URLCacheContainer_LockIndex(pContainer))) - { - HeapFree(GetProcessHeap(), 0, lpszUrlA); return FALSE; - } - if (!URLCache_FindEntryInHash(pHeader, lpszUrlA, &pEntry)) + if (!URLCache_FindEntryInHashW(pHeader, lpszUrl, &pEntry)) { URLCacheContainer_UnlockIndex(pContainer, pHeader); - WARN("entry %s not found!\n", debugstr_a(lpszUrlA)); - HeapFree(GetProcessHeap(), 0, lpszUrlA); + WARN("entry %s not found!\n", debugstr_w(lpszUrl)); SetLastError(ERROR_FILE_NOT_FOUND); return FALSE; } - HeapFree(GetProcessHeap(), 0, lpszUrlA); if (pEntry->dwSignature != URL_SIGNATURE) { @@ -1596,47 +1606,25 @@ BOOL WINAPI SetUrlCacheEntryInfoW(LPCWSTR lpszUrl, LPINTERNET_CACHE_ENTRY_INFOW LPURLCACHE_HEADER pHeader; CACHEFILE_ENTRY * pEntry; URLCACHECONTAINER * pContainer; - LPSTR lpszUrlA; - int url_len; TRACE("(%s, %p, 0x%08x)\n", debugstr_w(lpszUrl), lpCacheEntryInfo, dwFieldControl); - url_len = WideCharToMultiByte(CP_ACP, 0, lpszUrl, -1, NULL, 0, NULL, NULL); - lpszUrlA = HeapAlloc(GetProcessHeap(), 0, url_len * sizeof(CHAR)); - if (!lpszUrlA) - { - SetLastError(ERROR_OUTOFMEMORY); - return FALSE; - } - WideCharToMultiByte(CP_ACP, 0, lpszUrl, -1, lpszUrlA, url_len, NULL, NULL); - if (!URLCacheContainers_FindContainerW(lpszUrl, &pContainer)) - { - HeapFree(GetProcessHeap(), 0, lpszUrlA); return FALSE; - } if (!URLCacheContainer_OpenIndex(pContainer)) - { - HeapFree(GetProcessHeap(), 0, lpszUrlA); return FALSE; - } if (!(pHeader = URLCacheContainer_LockIndex(pContainer))) - { - HeapFree(GetProcessHeap(), 0, lpszUrlA); return FALSE; - } - if (!URLCache_FindEntryInHash(pHeader, lpszUrlA, &pEntry)) + if (!URLCache_FindEntryInHashW(pHeader, lpszUrl, &pEntry)) { URLCacheContainer_UnlockIndex(pContainer, pHeader); - HeapFree(GetProcessHeap(), 0, lpszUrlA); - WARN("entry %s not found!\n", debugstr_a(lpszUrlA)); + WARN("entry %s not found!\n", debugstr_w(lpszUrl)); SetLastError(ERROR_FILE_NOT_FOUND); return FALSE; } - HeapFree(GetProcessHeap(), 0, lpszUrlA); if (pEntry->dwSignature != URL_SIGNATURE) {
1
0
0
0
Juan Lang : wininet: Implement IsUrlCacheEntryExpiredA.
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: 1594b429f85e3682b402eab49ee7576e58da3dd1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1594b429f85e3682b402eab49…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 19 10:20:25 2007 -0700 wininet: Implement IsUrlCacheEntryExpiredA. --- dlls/wininet/urlcache.c | 41 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 39 insertions(+), 2 deletions(-) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index b531c65..a3bf05f 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -2894,8 +2894,45 @@ DWORD WINAPI DeleteIE3Cache(HWND hWnd, HINSTANCE hInst, LPSTR lpszCmdLine, int n */ BOOL WINAPI IsUrlCacheEntryExpiredA( LPCSTR url, DWORD dwFlags, FILETIME* pftLastModified ) { - FIXME("(%s, %08x, %p) stub\n", debugstr_a(url), dwFlags, pftLastModified); - return FALSE; + LPURLCACHE_HEADER pHeader; + CACHEFILE_ENTRY * pEntry; + URL_CACHEFILE_ENTRY * pUrlEntry; + URLCACHECONTAINER * pContainer; + + TRACE("(%s, %08x, %p)\n", debugstr_a(url), dwFlags, pftLastModified); + + if (!URLCacheContainers_FindContainerA(url, &pContainer)) + return FALSE; + + if (!URLCacheContainer_OpenIndex(pContainer)) + return FALSE; + + if (!(pHeader = URLCacheContainer_LockIndex(pContainer))) + return FALSE; + + if (!URLCache_FindEntryInHash(pHeader, url, &pEntry)) + { + URLCacheContainer_UnlockIndex(pContainer, pHeader); + TRACE("entry %s not found!\n", url); + SetLastError(ERROR_FILE_NOT_FOUND); + return FALSE; + } + + if (pEntry->dwSignature != URL_SIGNATURE) + { + URLCacheContainer_UnlockIndex(pContainer, pHeader); + FIXME("Trying to retrieve entry of unknown format %s\n", debugstr_an((LPSTR)&pEntry->dwSignature, sizeof(DWORD))); + SetLastError(ERROR_FILE_NOT_FOUND); + return FALSE; + } + + pUrlEntry = (URL_CACHEFILE_ENTRY *)pEntry; + + DosDateTimeToFileTime(pUrlEntry->wExpiredDate, pUrlEntry->wExpiredTime, pftLastModified); + + URLCacheContainer_UnlockIndex(pContainer, pHeader); + + return TRUE; } /***********************************************************************
1
0
0
0
Juan Lang : wininet: Update comments to match function parameters.
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: a6c252c122e05f4dbf333dfa347f6c1978a66682 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a6c252c122e05f4dbf333dfa3…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Oct 19 10:20:00 2007 -0700 wininet: Update comments to match function parameters. --- dlls/wininet/urlcache.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index d9db16f..b531c65 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -2888,9 +2888,9 @@ DWORD WINAPI DeleteIE3Cache(HWND hWnd, HINSTANCE hInst, LPSTR lpszCmdLine, int n * IsUrlCacheEntryExpiredA (WININET.@) * * PARAMS - * url [I] Url - * dwFlags Unknown - * pftLastModified Unknown ptr + * url [I] Url + * dwFlags [I] Unknown + * pftLastModified [O] Last modified time */ BOOL WINAPI IsUrlCacheEntryExpiredA( LPCSTR url, DWORD dwFlags, FILETIME* pftLastModified ) { @@ -2902,9 +2902,9 @@ BOOL WINAPI IsUrlCacheEntryExpiredA( LPCSTR url, DWORD dwFlags, FILETIME* pftLas * IsUrlCacheEntryExpiredW (WININET.@) * * PARAMS - * url [I] Url - * dwFlags Unknown - * pftLastModified Unknown ptr + * url [I] Url + * dwFlags [I] Unknown + * pftLastModified [O] Last modified time */ BOOL WINAPI IsUrlCacheEntryExpiredW( LPCWSTR url, DWORD dwFlags, FILETIME* pftLastModified ) {
1
0
0
0
Rob Shearman : server: Fix file_set_sd to handle NULL DACLs.
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: 8d6093e6248baab1228e92272b3de15a8a6d29f9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8d6093e6248baab1228e92272…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Sat Oct 20 16:21:05 2007 +0100 server: Fix file_set_sd to handle NULL DACLs. These mean that the file should have full permissions for everyone. --- server/file.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/file.c b/server/file.c index 7a62b64..b5f6a87 100644 --- a/server/file.c +++ b/server/file.c @@ -435,9 +435,10 @@ static int file_set_sd( struct object *obj, const struct security_descriptor *sd if (set_info & DACL_SECURITY_INFORMATION) { - if (sd->control & SE_DACL_PRESENT) + int present; + const ACL *dacl = sd_get_dacl( sd, &present ); + if (present && dacl) { - const ACL *dacl = (const ACL *)((char *)sd + sd->owner_len + sd->group_len + sd->sacl_len); const ACE_HEADER *ace = (const ACE_HEADER *)(dacl + 1); ULONG i; for (i = 0; i < dacl->AceCount; i++)
1
0
0
0
Louis Lenders : setupapi: Add stub for SetupInstallServicesFromInfSectionA.
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: 1c7891f86e419b64b8a55605d37e5f29d14bd078 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1c7891f86e419b64b8a55605d…
Author: Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> Date: Sat Oct 20 15:23:01 2007 +0100 setupapi: Add stub for SetupInstallServicesFromInfSectionA. --- dlls/setupapi/install.c | 9 +++++++++ dlls/setupapi/setupapi.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c index f11ace4..412b1fd 100644 --- a/dlls/setupapi/install.c +++ b/dlls/setupapi/install.c @@ -1065,3 +1065,12 @@ void WINAPI InstallHinfSectionA( HWND hwnd, HINSTANCE handle, LPCSTR cmdline, IN RtlFreeUnicodeString( &cmdlineW ); } } + +/*********************************************************************** + * SetupInstallServicesFromInfSectionA (SETUPAPI.@) + */ +BOOL WINAPI SetupInstallServicesFromInfSectionA( HINF Inf, PCSTR SectionName, DWORD Flags) +{ + FIXME("(%p, %s, %d) stub!\n", Inf, debugstr_a(SectionName), Flags); + return FALSE; +} diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec index 8f5d78c..7f64edf 100644 --- a/dlls/setupapi/setupapi.spec +++ b/dlls/setupapi/setupapi.spec @@ -442,7 +442,7 @@ @ stdcall SetupInstallFilesFromInfSectionW(long long long wstr wstr long) @ stdcall SetupInstallFromInfSectionA(long long str long long str long ptr ptr long ptr) @ stdcall SetupInstallFromInfSectionW(long long wstr long long wstr long ptr ptr long ptr) -@ stub SetupInstallServicesFromInfSectionA +@ stdcall SetupInstallServicesFromInfSectionA(long str long) @ stub SetupInstallServicesFromInfSectionExA @ stub SetupInstallServicesFromInfSectionExW @ stub SetupInstallServicesFromInfSectionW
1
0
0
0
Lionel Debroux : server: Remove redundant NULL checks before free ( found by Smatch).
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: e122f81337d6544fd512f5664b34fc6ad0ab94c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e122f81337d6544fd512f5664…
Author: Lionel Debroux <lionel_debroux(a)yahoo.fr> Date: Sat Oct 20 09:37:43 2007 +0200 server: Remove redundant NULL checks before free (found by Smatch). --- server/registry.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/registry.c b/server/registry.c index ac740ef..03828e1 100644 --- a/server/registry.c +++ b/server/registry.c @@ -334,8 +334,8 @@ static void key_destroy( struct object *obj ) free( key->class ); for (i = 0; i <= key->last_value; i++) { - if (key->values[i].name) free( key->values[i].name ); - if (key->values[i].data) free( key->values[i].data ); + free( key->values[i].name ); + free( key->values[i].data ); } free( key->values ); for (i = 0; i <= key->last_subkey; i++)
1
0
0
0
Lionel Debroux : server: Remove redundant NULL checks before free ( found by Smatch).
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: 2f89fe7b37ebe63b285aa88f87f54b7995a9fa77 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2f89fe7b37ebe63b285aa88f8…
Author: Lionel Debroux <lionel_debroux(a)yahoo.fr> Date: Sat Oct 20 09:35:13 2007 +0200 server: Remove redundant NULL checks before free (found by Smatch). --- server/console.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/console.c b/server/console.c index a94c881..61c4924 100644 --- a/server/console.c +++ b/server/console.c @@ -710,7 +710,7 @@ static int set_console_input_info( const struct set_console_input_info_request * console->history_index -= delta; for (i = 0; i < console->history_size; i++) - if (console->history[i]) free( console->history[i] ); + free( console->history[i] ); free( console->history ); console->history = mem; console->history_size = req->history_size; @@ -1033,7 +1033,7 @@ static void console_input_destroy( struct object *obj ) release_object( console_in->event ); for (i = 0; i < console_in->history_size; i++) - if (console_in->history[i]) free( console_in->history[i] ); + free( console_in->history[i] ); free( console_in->history ); }
1
0
0
0
Lionel Debroux : itss: Remove redundant NULL check before free ( found by Smatch).
by Alexandre Julliard
22 Oct '07
22 Oct '07
Module: wine Branch: master Commit: 6bca5f6fa086a06ab2bd1846d21d4bcb2d55d491 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6bca5f6fa086a06ab2bd1846d…
Author: Lionel Debroux <lionel_debroux(a)yahoo.fr> Date: Sat Oct 20 09:32:38 2007 +0200 itss: Remove redundant NULL check before free (found by Smatch). --- dlls/itss/chm_lib.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c index 788ec54..67954ac 100644 --- a/dlls/itss/chm_lib.c +++ b/dlls/itss/chm_lib.c @@ -854,8 +854,7 @@ void chm_close(struct chmFile *h) int i; for (i=0; i<h->cache_num_blocks; i++) { - if (h->cache_blocks[i]) - HeapFree(GetProcessHeap(), 0, h->cache_blocks[i]); + HeapFree(GetProcessHeap(), 0, h->cache_blocks[i]); } HeapFree(GetProcessHeap(), 0, h->cache_blocks); h->cache_blocks = NULL;
1
0
0
0
← Newer
1
...
34
35
36
37
38
39
40
...
100
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
Results per page:
10
25
50
100
200