wininet: Make the reference count of WININETHANDLEHEADER thread-safe by using InterlockedIncrement/InterlockedDecrement.

Alexandre Julliard julliard at winehq.org
Mon Mar 10 06:05:29 CDT 2008


Robert Shearman <rob at codeweavers.com> writes:

> @@ -1296,7 +1296,7 @@ HINTERNET FTP_FtpOpenFileW(LPWININETFTPSESSIONW lpwfs,
>          lpwh->hdr.vtbl = &FTPFILEVtbl;
>          lpwh->hdr.dwFlags = dwFlags;
>          lpwh->hdr.dwContext = dwContext;
> -        lpwh->hdr.dwRefCount = 1;
> +        lpwh->hdr.lRefCount = 1;

If you are going to rename the variable then please take the opportunity
to get rid of the silly Hungarian prefix, so that we don't need to
rename it again next time.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list