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
October 2006
----- 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
1032 discussions
Start a n
N
ew thread
Jacek Caban : wininet: Store WININETFTPSESSIONW pointer in WININETFTPFINDNEXTW.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: 51ba292716707be61a03547e58d0cd20ae4c5488 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=51ba292716707be61a03547e5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:54:29 2006 +0100 wininet: Store WININETFTPSESSIONW pointer in WININETFTPFINDNEXTW. --- dlls/wininet/ftp.c | 5 +++++ dlls/wininet/internet.c | 6 +----- dlls/wininet/internet.h | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index fd3a0e8..12a6d80 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -2780,6 +2780,8 @@ static void FTP_CloseFindNextHandle(LPWI TRACE("\n"); + WININET_Release(&lpwfn->lpFtpSession->hdr); + for (i = 0; i < lpwfn->size; i++) { HeapFree(GetProcessHeap(), 0, lpwfn->lpafp[i].lpszName); @@ -2858,6 +2860,9 @@ static HINTERNET FTP_ReceiveFileList(LPW lpwfn->size = dwSize; lpwfn->lpafp = lpafp; + WININET_AddRef( &lpwfs->hdr ); + lpwfn->lpFtpSession = lpwfs; + handle = WININET_AllocHandle( &lpwfn->hdr ); } } diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 63e3460..ebb581e 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -74,10 +74,6 @@ #define MAX_IDLE_WORKER 1000*60*1 #define MAX_WORKER_THREADS 10 #define RESPONSE_TIMEOUT 30 -#define GET_HWININET_FROM_LPWININETFINDNEXT(lpwh) \ -(((LPWININETFTPSESSIONW)(lpwh->hdr.lpwhparent))->lpAppInfo) - - typedef struct { DWORD dwError; @@ -955,7 +951,7 @@ BOOL WINAPI InternetFindNextFileW(HINTER goto lend; } - hIC = GET_HWININET_FROM_LPWININETFINDNEXT(lpwh); + hIC = lpwh->lpFtpSession->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; diff --git a/dlls/wininet/internet.h b/dlls/wininet/internet.h index 54bbef3..e7af552 100644 --- a/dlls/wininet/internet.h +++ b/dlls/wininet/internet.h @@ -238,6 +238,7 @@ typedef struct typedef struct { WININETHANDLEHEADER hdr; + WININETFTPSESSIONW *lpFtpSession; DWORD index; DWORD size; LPFILEPROPERTIESW lpafp;
1
0
0
0
Jacek Caban : wininet: Move ftp FindNextFile implementation to ftp.c.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: 91312d7d57121b242e4af7b4134806c99bf657fd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=91312d7d57121b242e4af7b41…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:53:41 2006 +0100 wininet: Move ftp FindNextFile implementation to ftp.c. --- dlls/wininet/ftp.c | 66 ++++++++++++++++++++++++++++++++-- dlls/wininet/internet.c | 91 +++++++---------------------------------------- dlls/wininet/internet.h | 11 +++--- 3 files changed, 81 insertions(+), 87 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=91312d7d57121b242e4af…
1
0
0
0
Jacek Caban : wininet: Use lpAppInfo instead of lpwhparent where possible.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: 2a50d52c049e540cecb025d477edb59239d29979 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2a50d52c049e540cecb025d47…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:52:47 2006 +0100 wininet: Use lpAppInfo instead of lpwhparent where possible. --- dlls/wininet/dialogs.c | 4 ++-- dlls/wininet/ftp.c | 42 +++++++++++++++++++++--------------------- dlls/wininet/internet.c | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dlls/wininet/dialogs.c b/dlls/wininet/dialogs.c index fc95762..fc473be 100644 --- a/dlls/wininet/dialogs.c +++ b/dlls/wininet/dialogs.c @@ -72,7 +72,7 @@ static BOOL WININET_GetProxyServer( HINT if (NULL == lpwhs) return FALSE; - hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + hIC = lpwhs->lpAppInfo; if (NULL == hIC) return FALSE; @@ -216,7 +216,7 @@ static BOOL WININET_SetProxyAuthorizatio return FALSE; } - hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + hIC = lpwhs->lpAppInfo; p = HeapAlloc( GetProcessHeap(), 0, (strlenW( username ) + 1)*sizeof(WCHAR) ); if( !p ) diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index 9be0e74..9252bb9 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -194,7 +194,7 @@ BOOL WINAPI FtpPutFileW(HINTERNET hConne goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -252,7 +252,7 @@ BOOL WINAPI FTP_FtpPutFileW(LPWININETFTP /* Clear any error information */ INTERNET_SetLastError(0); - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; /* Open file to be uploaded */ if (INVALID_HANDLE_VALUE == @@ -358,7 +358,7 @@ BOOL WINAPI FtpSetCurrentDirectoryW(HINT TRACE("lpszDirectory(%s)\n", debugstr_w(lpszDirectory)); - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -411,7 +411,7 @@ BOOL WINAPI FTP_FtpSetCurrentDirectoryW( /* Clear any error information */ INTERNET_SetLastError(0); - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (!FTP_SendCommand(lpwfs->sndSocket, FTP_CMD_CWD, lpszDirectory, lpwfs->hdr.lpfnStatusCB, &lpwfs->hdr, lpwfs->hdr.dwContext)) goto lend; @@ -485,7 +485,7 @@ BOOL WINAPI FtpCreateDirectoryW(HINTERNE goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -550,7 +550,7 @@ BOOL WINAPI FTP_FtpCreateDirectoryW(LPWI } lend: - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { INTERNET_ASYNC_RESULT iar; @@ -618,7 +618,7 @@ HINTERNET WINAPI FtpFindFirstFileW(HINTE goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -681,7 +681,7 @@ HINTERNET WINAPI FTP_FtpFindFirstFileW(L if (!FTP_SendPortOrPasv(lpwfs)) goto lend; - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (!FTP_SendCommand(lpwfs->sndSocket, FTP_CMD_LIST, NULL, lpwfs->hdr.lpfnStatusCB, &lpwfs->hdr, lpwfs->hdr.dwContext)) goto lend; @@ -800,7 +800,7 @@ BOOL WINAPI FtpGetCurrentDirectoryW(HINT goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -858,7 +858,7 @@ BOOL WINAPI FTP_FtpGetCurrentDirectoryW( ZeroMemory(lpszCurrentDirectory, *lpdwCurrentDirectory); - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (!FTP_SendCommand(lpwfs->sndSocket, FTP_CMD_PWD, NULL, lpwfs->hdr.lpfnStatusCB, &lpwfs->hdr, lpwfs->hdr.dwContext)) goto lend; @@ -962,7 +962,7 @@ HINTERNET WINAPI FtpOpenFileW(HINTERNET INTERNET_SetLastError(ERROR_FTP_TRANSFER_IN_PROGRESS); goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -1055,7 +1055,7 @@ HINTERNET FTP_FtpOpenFileW(LPWININETFTPS if (lpwfs->lstnSocket != -1) closesocket(lpwfs->lstnSocket); - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { INTERNET_ASYNC_RESULT iar; @@ -1140,7 +1140,7 @@ BOOL WINAPI FtpGetFileW(HINTERNET hInter goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -1237,7 +1237,7 @@ lend: if (hFile) CloseHandle(hFile); - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { INTERNET_ASYNC_RESULT iar; @@ -1308,7 +1308,7 @@ BOOL WINAPI FtpDeleteFileW(HINTERNET hFt goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -1368,7 +1368,7 @@ BOOL FTP_FtpDeleteFileW(LPWININETFTPSESS FTP_SetResponseError(nResCode); } lend: - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { INTERNET_ASYNC_RESULT iar; @@ -1427,7 +1427,7 @@ BOOL WINAPI FtpRemoveDirectoryW(HINTERNE goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -1488,7 +1488,7 @@ BOOL FTP_FtpRemoveDirectoryW(LPWININETFT } lend: - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { INTERNET_ASYNC_RESULT iar; @@ -1550,7 +1550,7 @@ BOOL WINAPI FtpRenameFileW(HINTERNET hFt goto lend; } - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { WORKREQUEST workRequest; @@ -1618,7 +1618,7 @@ BOOL FTP_FtpRenameFileW( LPWININETFTPSES FTP_SetResponseError(nResCode); lend: - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) { INTERNET_ASYNC_RESULT iar; @@ -2006,7 +2006,7 @@ INT FTP_ReceiveResponse(LPWININETFTPSESS TRACE("socket(%d)\n", lpwfs->sndSocket); - hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent; + hIC = lpwfs->lpAppInfo; SendAsyncCallback(&lpwfs->hdr, dwContext, INTERNET_STATUS_RECEIVING_RESPONSE, NULL, 0); while(1) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 92d961d..d9385c8 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -75,7 +75,7 @@ #define MAX_WORKER_THREADS 10 #define RESPONSE_TIMEOUT 30 #define GET_HWININET_FROM_LPWININETFINDNEXT(lpwh) \ -(LPWININETAPPINFOW)(((LPWININETFTPSESSIONW)(lpwh->hdr.lpwhparent))->hdr.lpwhparent) +(((LPWININETFTPSESSIONW)(lpwh->hdr.lpwhparent))->lpAppInfo) typedef struct
1
0
0
0
Jacek Caban : wininet: Store WININETAPPINFOW pointer in WININETFTPSESSIONW.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: 96c0c6c5d9009969521ee3b3819a8122bf81d81c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=96c0c6c5d9009969521ee3b38…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:52:02 2006 +0100 wininet: Store WININETAPPINFOW pointer in WININETFTPSESSIONW. --- dlls/wininet/ftp.c | 5 +++++ dlls/wininet/internet.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index cf37ac8..9be0e74 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -1728,6 +1728,9 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW lpwfs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB; lpwfs->download_in_progress = NULL; + WININET_AddRef( &hIC->hdr ); + lpwfs->lpAppInfo = hIC; + handle = WININET_AllocHandle( &lpwfs->hdr ); if( !handle ) { @@ -2685,6 +2688,8 @@ static void FTP_CloseSessionHandle(LPWIN TRACE("\n"); + WININET_Release(&lpwfs->lpAppInfo->hdr); + if (lpwfs->download_in_progress != NULL) lpwfs->download_in_progress->session_deleted = TRUE; diff --git a/dlls/wininet/internet.h b/dlls/wininet/internet.h index de53717..6d2e857 100644 --- a/dlls/wininet/internet.h +++ b/dlls/wininet/internet.h @@ -213,6 +213,7 @@ typedef struct typedef struct { WININETHANDLEHEADER hdr; + WININETAPPINFOW *lpAppInfo; int sndSocket; int lstnSocket; int pasvSocket; /* data socket connected by us in case of passive FTP */
1
0
0
0
Jacek Caban : wininet: Use lpHttpSession instead of lpwhcalback where possible.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: 61a1cef6f65dbd2da6d92913060206d043f96e90 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=61a1cef6f65dbd2da6d929130…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:51:15 2006 +0100 wininet: Use lpHttpSession instead of lpwhcalback where possible. --- dlls/wininet/dialogs.c | 4 ++-- dlls/wininet/http.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/wininet/dialogs.c b/dlls/wininet/dialogs.c index 2eae034..fc95762 100644 --- a/dlls/wininet/dialogs.c +++ b/dlls/wininet/dialogs.c @@ -68,7 +68,7 @@ static BOOL WININET_GetProxyServer( HINT if (NULL == lpwhr) return FALSE; - lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; + lpwhs = lpwhr->lpHttpSession; if (NULL == lpwhs) return FALSE; @@ -209,7 +209,7 @@ static BOOL WININET_SetProxyAuthorizatio if( !lpwhr ) return FALSE; - lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; + lpwhs = lpwhr->lpHttpSession; if (NULL == lpwhs || lpwhs->hdr.htype != WH_HHTTPSESSION) { INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE); diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index cfbda27..3ae442e 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -372,7 +372,7 @@ static void HTTP_ProcessHeaders( LPWININ static void HTTP_AddProxyInfo( LPWININETHTTPREQW lpwhr ) { - LPWININETHTTPSESSIONW lpwhs = (LPWININETHTTPSESSIONW)lpwhr->hdr.lpwhparent; + LPWININETHTTPSESSIONW lpwhs = lpwhr->lpHttpSession; LPWININETAPPINFOW hIC = lpwhs->lpAppInfo; assert(lpwhs->hdr.htype == WH_HHTTPSESSION); @@ -1761,7 +1761,7 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET return FALSE; } - lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; + lpwhs = lpwhr->lpHttpSession; assert(lpwhs->hdr.htype == WH_HHTTPSESSION); hIC = lpwhs->lpAppInfo; assert(hIC->hdr.htype == WH_HINIT); @@ -1845,7 +1845,7 @@ BOOL WINAPI HttpSendRequestW(HINTERNET h goto lend; } - lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; + lpwhs = lpwhr->lpHttpSession; if (NULL == lpwhs || lpwhs->hdr.htype != WH_HHTTPSESSION) { INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE); @@ -1932,7 +1932,7 @@ static BOOL HTTP_HandleRedirect(LPWININE DWORD dwHeaderLength, LPVOID lpOptional, DWORD dwOptionalLength, DWORD dwContentLength) { - LPWININETHTTPSESSIONW lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; + LPWININETHTTPSESSIONW lpwhs = lpwhr->lpHttpSession; LPWININETAPPINFOW hIC = lpwhs->lpAppInfo; WCHAR path[2048]; char szaddr[32]; @@ -2174,7 +2174,7 @@ static BOOL HTTP_SecureProxyConnect(LPWI BOOL ret; static const WCHAR szConnect[] = {'C','O','N','N','E','C','T',0}; static const WCHAR szFormat[] = {'%','s',':','%','d',0}; - LPWININETHTTPSESSIONW lpwhs = (LPWININETHTTPSESSIONW)lpwhr->hdr.lpwhparent; + LPWININETHTTPSESSIONW lpwhs = lpwhr->lpHttpSession; TRACE("\n"); @@ -2485,7 +2485,7 @@ static BOOL HTTP_OpenConnection(LPWININE goto lend; } - lpwhs = (LPWININETHTTPSESSIONW)lpwhr->hdr.lpwhparent; + lpwhs = lpwhr->lpHttpSession; hIC = lpwhs->lpAppInfo; inet_ntop(lpwhs->socketAddress.sin_family, &lpwhs->socketAddress.sin_addr, @@ -2912,7 +2912,7 @@ static VOID HTTP_CloseConnection(LPWININ TRACE("%p\n",lpwhr); - lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; + lpwhs = lpwhr->lpHttpSession; hIC = lpwhs->lpAppInfo; INTERNET_SendCallback(&lpwhr->hdr, lpwhr->hdr.dwContext,
1
0
0
0
Jacek Caban : wininet: Store pointer to WININETHTTPSESSIONW in WININETHTTPREQUESTW.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: a9bdc01e19ee5896706634ca5e633d136b81f60f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a9bdc01e19ee5896706634ca5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:50:25 2006 +0100 wininet: Store pointer to WININETHTTPSESSIONW in WININETHTTPREQUESTW. --- dlls/wininet/http.c | 5 +++++ dlls/wininet/internet.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 2d39608..cfbda27 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1009,6 +1009,9 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(L lpwhr->hdr.destroy = HTTP_CloseHTTPRequestHandle; lpwhr->hdr.lpfnStatusCB = lpwhs->hdr.lpfnStatusCB; + WININET_AddRef( &lpwhs->hdr ); + lpwhr->lpHttpSession = lpwhs; + handle = WININET_AllocHandle( &lpwhr->hdr ); if (NULL == handle) { @@ -2938,6 +2941,8 @@ static void HTTP_CloseHTTPRequestHandle( TRACE("\n"); + WININET_Release(&lpwhr->hdr); + if (NETCON_connected(&lpwhr->netConnection)) HTTP_CloseConnection(lpwhr); diff --git a/dlls/wininet/internet.h b/dlls/wininet/internet.h index 9c4e7d2..de53717 100644 --- a/dlls/wininet/internet.h +++ b/dlls/wininet/internet.h @@ -190,6 +190,7 @@ typedef struct typedef struct { WININETHANDLEHEADER hdr; + WININETHTTPSESSIONW *lpHttpSession; LPWSTR lpszPath; LPWSTR lpszVerb; LPWSTR lpszRawHeaders;
1
0
0
0
Jacek Caban : wininet: Use lpAppInfo instead of lpwhparent where possible.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: a541a44f512d1151eb702408580e013e5096bff1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a541a44f512d1151eb7024085…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:49:39 2006 +0100 wininet: Use lpAppInfo instead of lpwhparent where possible. --- dlls/wininet/http.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index e56ea4e..2d39608 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -373,7 +373,7 @@ static void HTTP_ProcessHeaders( LPWININ static void HTTP_AddProxyInfo( LPWININETHTTPREQW lpwhr ) { LPWININETHTTPSESSIONW lpwhs = (LPWININETHTTPSESSIONW)lpwhr->hdr.lpwhparent; - LPWININETAPPINFOW hIC = (LPWININETAPPINFOW)lpwhs->hdr.lpwhparent; + LPWININETAPPINFOW hIC = lpwhs->lpAppInfo; assert(lpwhs->hdr.htype == WH_HHTTPSESSION); assert(hIC->hdr.htype == WH_HINIT); @@ -993,7 +993,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(L TRACE("-->\n"); assert( lpwhs->hdr.htype == WH_HHTTPSESSION ); - hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + hIC = lpwhs->lpAppInfo; lpwhr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WININETHTTPREQW)); if (NULL == lpwhr) @@ -1760,7 +1760,7 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; assert(lpwhs->hdr.htype == WH_HHTTPSESSION); - hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + hIC = lpwhs->lpAppInfo; assert(hIC->hdr.htype == WH_HINIT); if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC) @@ -1850,7 +1850,7 @@ BOOL WINAPI HttpSendRequestW(HINTERNET h goto lend; } - hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + hIC = lpwhs->lpAppInfo; if (NULL == hIC || hIC->hdr.htype != WH_HINIT) { INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE); @@ -1930,7 +1930,7 @@ static BOOL HTTP_HandleRedirect(LPWININE DWORD dwContentLength) { LPWININETHTTPSESSIONW lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; - LPWININETAPPINFOW hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + LPWININETAPPINFOW hIC = lpwhs->lpAppInfo; WCHAR path[2048]; char szaddr[32]; @@ -2484,7 +2484,7 @@ static BOOL HTTP_OpenConnection(LPWININE lpwhs = (LPWININETHTTPSESSIONW)lpwhr->hdr.lpwhparent; - hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + hIC = lpwhs->lpAppInfo; inet_ntop(lpwhs->socketAddress.sin_family, &lpwhs->socketAddress.sin_addr, szaddr, sizeof(szaddr)); INTERNET_SendCallback(&lpwhr->hdr, lpwhr->hdr.dwContext, @@ -2910,7 +2910,7 @@ static VOID HTTP_CloseConnection(LPWININ TRACE("%p\n",lpwhr); lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent; - hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent; + hIC = lpwhs->lpAppInfo; INTERNET_SendCallback(&lpwhr->hdr, lpwhr->hdr.dwContext, INTERNET_STATUS_CLOSING_CONNECTION, 0, 0);
1
0
0
0
Jacek Caban : wininet: Store WININETAPPINFOW pointer in WININETHTTPSESSIONW .
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: c250617d8820040fcfc58d021ebbcaa5a4882502 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c250617d8820040fcfc58d021…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Oct 29 18:48:48 2006 +0100 wininet: Store WININETAPPINFOW pointer in WININETHTTPSESSIONW. --- dlls/wininet/http.c | 5 +++++ dlls/wininet/internet.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 0d564be..e56ea4e 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2405,6 +2405,9 @@ HINTERNET HTTP_Connect(LPWININETAPPINFOW lpwhs->hdr.destroy = HTTP_CloseHTTPSessionHandle; lpwhs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB; + WININET_AddRef( &hIC->hdr ); + lpwhs->lpAppInfo = hIC; + handle = WININET_AllocHandle( &lpwhs->hdr ); if (NULL == handle) { @@ -2967,6 +2970,8 @@ static void HTTP_CloseHTTPSessionHandle( TRACE("%p\n", lpwhs); + WININET_Release(&lpwhs->lpAppInfo->hdr); + HeapFree(GetProcessHeap(), 0, lpwhs->lpszHostName); HeapFree(GetProcessHeap(), 0, lpwhs->lpszServerName); HeapFree(GetProcessHeap(), 0, lpwhs->lpszUserName); diff --git a/dlls/wininet/internet.h b/dlls/wininet/internet.h index 2f81db1..9c4e7d2 100644 --- a/dlls/wininet/internet.h +++ b/dlls/wininet/internet.h @@ -165,6 +165,7 @@ typedef struct typedef struct { WININETHANDLEHEADER hdr; + WININETAPPINFOW *lpAppInfo; LPWSTR lpszHostName; /* the final destination of the request */ LPWSTR lpszServerName; /* the name of the server we directly connect to */ LPWSTR lpszUserName;
1
0
0
0
Paul Vriens : shell32: Cast-qual warnings fix.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: 1af1ead894fa4ae369370d577d96a8617b90484c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1af1ead894fa4ae369370d577…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Sun Oct 29 10:36:57 2006 +0100 shell32: Cast-qual warnings fix. --- dlls/shell32/tests/shlfolder.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index a975391..6332d1f 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -624,7 +624,7 @@ static void test_GetAttributesOf(void) 'A','2','D','8','-','0','8','0','0','2','B','3','0','3','0','9','D','}',0 }; char cCurrDirA [MAX_PATH] = {0}; WCHAR cCurrDirW [MAX_PATH]; - static const WCHAR cTestDirW[] = {'t','e','s','t','d','i','r',0}; + static WCHAR cTestDirW[] = {'t','e','s','t','d','i','r',0}; static const WCHAR cBackSlash[] = {'\\',0}; IShellFolder *IDesktopFolder, *testIShellFolder; ITEMIDLIST *newPIDL; @@ -713,7 +713,7 @@ static void test_GetAttributesOf(void) IMalloc_Free(ppM, newPIDL); /* get relative PIDL */ - hr = IShellFolder_ParseDisplayName(testIShellFolder, NULL, NULL, (LPWSTR)cTestDirW, NULL, &newPIDL, 0); + hr = IShellFolder_ParseDisplayName(testIShellFolder, NULL, NULL, cTestDirW, NULL, &newPIDL, 0); ok(hr == S_OK, "ParseDisplayName failed %08x\n", hr); /* test the shell attributes of the test directory using the relative PIDL */
1
0
0
0
Andrew Talbot : dbghelp: Cast-qual warnings fix.
by Alexandre Julliard
30 Oct '06
30 Oct '06
Module: wine Branch: master Commit: db941dd078bd8344d2a5e329f7060fbc1440c531 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=db941dd078bd8344d2a5e329f…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Sat Oct 28 17:27:26 2006 +0100 dbghelp: Cast-qual warnings fix. --- dlls/dbghelp/source.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/dbghelp/source.c b/dlls/dbghelp/source.c index 133cd2f..5842a3f 100644 --- a/dlls/dbghelp/source.c +++ b/dlls/dbghelp/source.c @@ -59,6 +59,7 @@ unsigned source_new(struct module* modul int len; unsigned ret; const char* full; + char* tmp = NULL; if (!name) return (unsigned)-1; if (!base || *name == '/') @@ -66,8 +67,8 @@ unsigned source_new(struct module* modul else { unsigned bsz = strlen(base); - char* tmp = HeapAlloc(GetProcessHeap(), 0, bsz + 1 + strlen(name) + 1); + tmp = HeapAlloc(GetProcessHeap(), 0, bsz + 1 + strlen(name) + 1); if (!tmp) return (unsigned)-1; full = tmp; strcpy(tmp, base); @@ -92,7 +93,7 @@ unsigned source_new(struct module* modul strcpy(module->sources + module->sources_used, full); module->sources_used += len; module->sources[module->sources_used] = '\0'; - if (full != name) HeapFree(GetProcessHeap(), 0, (char*)full); + HeapFree(GetProcessHeap(), 0, tmp); return ret; }
1
0
0
0
← Newer
1
...
5
6
7
8
9
10
11
...
104
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
Results per page:
10
25
50
100
200