[7/8] oleaut32: Remove unused variable.

Dmitry Timoshkov dmitry at baikal.ru
Mon Oct 28 03:28:24 CDT 2013


---
 dlls/oleaut32/olepicture.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 4b3e9dd..4e31044 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -2273,7 +2273,6 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
   HANDLE hFile;
   DWORD dwFileSize;
   HGLOBAL hGlobal = NULL;
-  DWORD dwBytesRead = 0;
   IStream *stream;
   BOOL bRead;
   IPersistStream *pStream;
@@ -2317,7 +2316,7 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
 	  hGlobal = GlobalAlloc(GMEM_FIXED,dwFileSize);
 	  if ( hGlobal)
 	  {
-	      bRead = ReadFile(hFile, hGlobal, dwFileSize, &dwBytesRead, NULL);
+	      bRead = ReadFile(hFile, hGlobal, dwFileSize, NULL, NULL);
 	      if (!bRead)
 	      {
 		  GlobalFree(hGlobal);
-- 
1.8.4.1




More information about the wine-patches mailing list