diff --git a/dlls/urlmon/sec_mgr.c b/dlls/urlmon/sec_mgr.c index e82c6579217..4017891820a 100644 --- a/dlls/urlmon/sec_mgr.c +++ b/dlls/urlmon/sec_mgr.c @@ -43,7 +43,7 @@ typedef struct SecManagerImpl{ const IInternetSecurityManagerVtbl* lpvtbl1; /* VTable relative to the IInternetSecurityManager interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ } SecManagerImpl; @@ -210,7 +210,7 @@ HRESULT SecManagerImpl_Construct(IUnknown *pUnkOuter, LPVOID *ppobj) */ typedef struct { const IInternetZoneManagerVtbl* lpVtbl; - ULONG ref; + LONG ref; } ZoneMgrImpl; /******************************************************************** diff --git a/dlls/urlmon/umon.c b/dlls/urlmon/umon.c index 70e4d347779..a6bf5fe4b63 100644 --- a/dlls/urlmon/umon.c +++ b/dlls/urlmon/umon.c @@ -51,7 +51,7 @@ static const WCHAR BSCBHolder[] = { '_','B','S','C','B','_','H','o','l','d','e', typedef struct { const IBindingVtbl *lpVtbl; - ULONG ref; + LONG ref; LPWSTR URLName; @@ -291,7 +291,7 @@ typedef struct { const IMonikerVtbl* lpvtbl; /* VTable relative to the IMoniker interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ LPOLESTR URLName; /* URL string identified by this URLmoniker */ } URLMonikerImpl; diff --git a/dlls/urlmon/umstream.c b/dlls/urlmon/umstream.c index da9e8f2cc65..f9073175424 100644 --- a/dlls/urlmon/umstream.c +++ b/dlls/urlmon/umstream.c @@ -253,7 +253,8 @@ static HRESULT WINAPI IStream_fnSeek ( IStream * iface, DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition) { - DWORD pos, newposlo, newposhi; + DWORD pos, newposlo; + LONG newposhi; IUMCacheStream *This = (IUMCacheStream *)iface; @@ -262,7 +263,7 @@ static HRESULT WINAPI IStream_fnSeek ( IStream * iface, pos = dlibMove.QuadPart; /* FIXME: truncates */ newposhi = 0; newposlo = SetFilePointer( This->handle, pos, &newposhi, dwOrigin ); - if( newposlo == INVALID_SET_FILE_POINTER ) + if( newposlo == INVALID_SET_FILE_POINTER && GetLastError()) return E_FAIL; if (plibNewPosition) diff --git a/dlls/urlmon/urlmon_main.c b/dlls/urlmon/urlmon_main.c index 3a949c05a6f..b3dcc15851b 100644 --- a/dlls/urlmon/urlmon_main.c +++ b/dlls/urlmon/urlmon_main.c @@ -89,7 +89,7 @@ HRESULT WINAPI URLMON_DllCanUnloadNow(void) typedef struct { IClassFactory ITF_IClassFactory; - DWORD ref; + LONG ref; HRESULT (*pfnCreateInstance)(IUnknown *pUnkOuter, LPVOID *ppObj); } IClassFactoryImpl; diff --git a/dlls/urlmon/urlmon_main.h b/dlls/urlmon/urlmon_main.h index e1ce8734333..9a6093dc134 100644 --- a/dlls/urlmon/urlmon_main.h +++ b/dlls/urlmon/urlmon_main.h @@ -40,7 +40,7 @@ static inline void URLMON_UnlockModule(void) { InterlockedDecrement( &URLMON_ref typedef struct { const IStreamVtbl *lpVtbl; - DWORD ref; + LONG ref; HANDLE handle; BOOL closed; WCHAR *pszFileName;