diff --git a/dlls/dmloader/dmloader_main.c b/dlls/dmloader/dmloader_main.c index 68aba69b848..55095d70dfc 100644 --- a/dlls/dmloader/dmloader_main.c +++ b/dlls/dmloader/dmloader_main.c @@ -21,8 +21,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(dmloader); -DWORD dwDirectMusicContainer = 0; -DWORD dwDirectMusicLoader = 0; +LONG dwDirectMusicContainer = 0; +LONG dwDirectMusicLoader = 0; /****************************************************************** * DllMain diff --git a/dlls/dmloader/dmloader_private.h b/dlls/dmloader/dmloader_private.h index 0188e5f06a4..c0c972935ad 100644 --- a/dlls/dmloader/dmloader_private.h +++ b/dlls/dmloader/dmloader_private.h @@ -45,8 +45,8 @@ #define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field)) /* dmloader.dll global (for DllCanUnloadNow) */ -extern DWORD dwDirectMusicLoader; /* number of DirectMusicLoader(CF) instances */ -extern DWORD dwDirectMusicContainer; /* number of DirectMusicContainer(CF) instances */ +extern LONG dwDirectMusicLoader; /* number of DirectMusicLoader(CF) instances */ +extern LONG dwDirectMusicContainer; /* number of DirectMusicContainer(CF) instances */ /***************************************************************************** * Interfaces @@ -87,7 +87,7 @@ extern HRESULT WINAPI DMUSIC_DestroyDirectMusicLoaderGenericStream (LPSTREAM ifa struct IDirectMusicLoaderCF { /* IUnknown fields */ const IClassFactoryVtbl *lpVtbl; - DWORD dwRef; + LONG dwRef; }; /* IUnknown / IClassFactory: */ @@ -100,7 +100,7 @@ extern ULONG WINAPI IDirectMusicLoaderCF_AddRef (LPCLASSFACTORY iface); struct IDirectMusicContainerCF { /* IUnknown fields */ const IClassFactoryVtbl *lpVtbl; - DWORD dwRef; + LONG dwRef; }; /* IUnknown / IClassFactory: */ @@ -130,7 +130,7 @@ struct IDirectMusicLoaderImpl { /* VTABLEs */ const IDirectMusicLoader8Vtbl *LoaderVtbl; /* reference counter */ - DWORD dwRef; + LONG dwRef; /* simple cache (linked list) */ struct list *pObjects; /* settings for certain object classes */ @@ -162,7 +162,7 @@ struct IDirectMusicContainerImpl { const IDirectMusicObjectVtbl *ObjectVtbl; const IPersistStreamVtbl *PersistStreamVtbl; /* reference counter */ - DWORD dwRef; + LONG dwRef; /* stream */ LPSTREAM pStream; /* header */ @@ -191,7 +191,7 @@ struct IDirectMusicLoaderFileStream { const IStreamVtbl *StreamVtbl; const IDirectMusicGetLoaderVtbl *GetLoaderVtbl; /* reference counter */ - DWORD dwRef; + LONG dwRef; /* file */ WCHAR wzFileName[MAX_PATH]; /* for clone */ HANDLE hFile; @@ -217,7 +217,7 @@ struct IDirectMusicLoaderResourceStream { const IStreamVtbl *StreamVtbl; const IDirectMusicGetLoaderVtbl *GetLoaderVtbl; /* reference counter */ - DWORD dwRef; + LONG dwRef; /* data */ LPBYTE pbMemData; LONGLONG llMemLength; @@ -245,7 +245,7 @@ struct IDirectMusicLoaderGenericStream { const IStreamVtbl *StreamVtbl; const IDirectMusicGetLoaderVtbl *GetLoaderVtbl; /* reference counter */ - DWORD dwRef; + LONG dwRef; /* stream */ LPSTREAM pStream; /* loader */ diff --git a/dlls/dmloader/loader.c b/dlls/dmloader/loader.c index dde01a22c9e..2787069fa67 100644 --- a/dlls/dmloader/loader.c +++ b/dlls/dmloader/loader.c @@ -827,7 +827,7 @@ HRESULT WINAPI DMUSIC_GetDefaultGMPath (WCHAR wszPath[MAX_PATH]) { char szPath[MAX_PATH]; if ((RegOpenKeyExA (HKEY_LOCAL_MACHINE, "Software\\Microsoft\\DirectMusic" , 0, KEY_READ, &hkDM) != ERROR_SUCCESS) || - (RegQueryValueExA (hkDM, "GMFilePath", NULL, &returnType, szPath, &sizeOfReturnBuffer) != ERROR_SUCCESS)) { + (RegQueryValueExA (hkDM, "GMFilePath", NULL, &returnType, (LPBYTE) szPath, &sizeOfReturnBuffer) != ERROR_SUCCESS)) { WARN(": registry entry missing\n" ); return E_FAIL; } diff --git a/dlls/ole32/antimoniker.c b/dlls/ole32/antimoniker.c index 8ec451357f9..6993b42f722 100644 --- a/dlls/ole32/antimoniker.c +++ b/dlls/ole32/antimoniker.c @@ -49,7 +49,7 @@ typedef struct AntiMonikerImpl{ */ const IROTDataVtbl* lpvtbl2; /* VTable relative to the IROTData interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ } AntiMonikerImpl; diff --git a/dlls/ole32/bindctx.c b/dlls/ole32/bindctx.c index 3d19e064e1a..6b427f4dd61 100644 --- a/dlls/ole32/bindctx.c +++ b/dlls/ole32/bindctx.c @@ -52,7 +52,7 @@ typedef struct BindCtxImpl{ const IBindCtxVtbl *lpVtbl; /* VTable relative to the IBindCtx interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ BindCtxObject* bindCtxTable; /* this is a table in which all bounded objects are stored*/ DWORD bindCtxTableLastIndex; /* first free index in the table */ diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c index 4368ef50956..75b706dc142 100644 --- a/dlls/ole32/clipboard.c +++ b/dlls/ole32/clipboard.c @@ -122,7 +122,7 @@ struct OLEClipbrd /* * Reference count of this object */ - ULONG ref; + LONG ref; }; typedef struct OLEClipbrd OLEClipbrd; @@ -145,7 +145,7 @@ typedef struct /* * Reference count of this object */ - DWORD ref; + LONG ref; /* * IUnknown implementation of the parent data object. diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h index de3fcc8865e..3289b118948 100644 --- a/dlls/ole32/compobj_private.h +++ b/dlls/ole32/compobj_private.h @@ -112,7 +112,7 @@ struct proxy_manager OXID oxid; /* object exported ID (RO) */ OID oid; /* object ID (RO) */ struct list interfaces; /* imported interfaces (CS cs) */ - DWORD refs; /* proxy reference count (LOCK) */ + LONG refs; /* proxy reference count (LOCK) */ CRITICAL_SECTION cs; /* thread safety for this object and children */ ULONG sorflags; /* STDOBJREF flags (RO) */ IRemUnknown *remunk; /* proxy to IRemUnknown used for lifecycle management (CS cs) */ @@ -124,12 +124,12 @@ struct apartment { struct list entry; - DWORD refs; /* refcount of the apartment (LOCK) */ + LONG refs; /* refcount of the apartment (LOCK) */ DWORD model; /* threading model (RO) */ DWORD tid; /* thread id (RO) */ HANDLE thread; /* thread handle (RO) */ OXID oxid; /* object exporter ID (RO) */ - DWORD ipidc; /* interface pointer ID counter, starts at 1 (LOCK) */ + LONG ipidc; /* interface pointer ID counter, starts at 1 (LOCK) */ HWND win; /* message window (RO) */ CRITICAL_SECTION cs; /* thread safety */ LPMESSAGEFILTER filter; /* message filter (CS cs) */ diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c index 54cd7d4df5b..87c483ad4ce 100644 --- a/dlls/ole32/compositemoniker.c +++ b/dlls/ole32/compositemoniker.c @@ -54,7 +54,7 @@ typedef struct CompositeMonikerImpl{ */ const IROTDataVtbl* lpvtbl2; /* VTable relative to the IROTData interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ IMoniker** tabMoniker; /* dynamaic table containing all components (monikers) of this composite moniker */ @@ -70,7 +70,7 @@ typedef struct EnumMonikerImpl{ const IEnumMonikerVtbl *lpVtbl; /* VTable relative to the IEnumMoniker interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ IMoniker** tabMoniker; /* dynamic table containing the enumerated monikers */ diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 8ee3412a9d9..f53fdb1345e 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -103,7 +103,7 @@ struct DataCache /* * Reference count of this object */ - ULONG ref; + LONG ref; /* * IUnknown implementation of the outer object. diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index a387801fdc9..d59c3b6ba3f 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -78,7 +78,7 @@ struct DefaultHandler /* * Reference count of this object */ - ULONG ref; + LONG ref; /* * IUnknown implementation of the outer object. diff --git a/dlls/ole32/errorinfo.c b/dlls/ole32/errorinfo.c index 5ac51df1c3a..dc3b41e721a 100644 --- a/dlls/ole32/errorinfo.c +++ b/dlls/ole32/errorinfo.c @@ -131,7 +131,7 @@ typedef struct ErrorInfoImpl const IErrorInfoVtbl *lpvtei; const ICreateErrorInfoVtbl *lpvtcei; const ISupportErrorInfoVtbl *lpvtsei; - DWORD ref; + LONG ref; GUID m_Guid; BSTR bstrSource; diff --git a/dlls/ole32/filemoniker.c b/dlls/ole32/filemoniker.c index 2dcb532cd1a..a4e6a73a3bb 100644 --- a/dlls/ole32/filemoniker.c +++ b/dlls/ole32/filemoniker.c @@ -53,7 +53,7 @@ typedef struct FileMonikerImpl{ */ const IROTDataVtbl* lpvtbl2; /* VTable relative to the IROTData interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ LPOLESTR filePathName; /* path string identified by this filemoniker */ diff --git a/dlls/ole32/ftmarshal.c b/dlls/ole32/ftmarshal.c index 0a17b3489de..6c0ad7346be 100644 --- a/dlls/ole32/ftmarshal.c +++ b/dlls/ole32/ftmarshal.c @@ -38,7 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); typedef struct _FTMarshalImpl { const IUnknownVtbl *lpVtbl; - DWORD ref; + LONG ref; const IMarshalVtbl *lpvtblFTM; IUnknown *pUnkOuter; diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c index 9895df6f176..ca73a224228 100644 --- a/dlls/ole32/hglobalstream.c +++ b/dlls/ole32/hglobalstream.c @@ -60,7 +60,7 @@ struct HGLOBALStreamImpl /* * Reference count */ - ULONG ref; + LONG ref; /* * Support for the stream diff --git a/dlls/ole32/ifs.c b/dlls/ole32/ifs.c index f0e940bf393..5c087f32628 100644 --- a/dlls/ole32/ifs.c +++ b/dlls/ole32/ifs.c @@ -366,7 +366,7 @@ static const IMallocSpyVtbl VT_IMallocSpy; typedef struct { const IMallocSpyVtbl *lpVtbl; - DWORD ref; + LONG ref; } _MallocSpy; /* this is the static object instance */ diff --git a/dlls/ole32/itemmoniker.c b/dlls/ole32/itemmoniker.c index 42ce0a57361..853c28a4426 100644 --- a/dlls/ole32/itemmoniker.c +++ b/dlls/ole32/itemmoniker.c @@ -52,7 +52,7 @@ typedef struct ItemMonikerImpl{ */ const IROTDataVtbl* lpvtbl2; /* VTable relative to the IROTData interface.*/ - ULONG ref; /* reference counter for this object */ + LONG ref; /* reference counter for this object */ LPOLESTR itemName; /* item name identified by this ItemMoniker */ diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c index ce691921dd4..240a1b47deb 100644 --- a/dlls/ole32/marshal.c +++ b/dlls/ole32/marshal.c @@ -763,7 +763,7 @@ HRESULT apartment_disconnectproxies(struct apartment *apt) typedef struct _StdMarshalImpl { const IMarshalVtbl *lpvtbl; - DWORD ref; + LONG ref; IID iid; DWORD dwDestContext; diff --git a/dlls/ole32/memlockbytes.c b/dlls/ole32/memlockbytes.c index c9a3a1a6f43..2cc93b4240e 100644 --- a/dlls/ole32/memlockbytes.c +++ b/dlls/ole32/memlockbytes.c @@ -57,7 +57,7 @@ struct HGLOBALLockBytesImpl /* * Reference count */ - ULONG ref; + LONG ref; /* * Support for the LockBytes object diff --git a/dlls/ole32/memlockbytes16.c b/dlls/ole32/memlockbytes16.c index 17eaac110e7..57cdce18c0b 100644 --- a/dlls/ole32/memlockbytes16.c +++ b/dlls/ole32/memlockbytes16.c @@ -53,7 +53,7 @@ struct HGLOBALLockBytesImpl16 * since we want to cast this in an ILockBytes pointer */ const ILockBytes16Vtbl *lpVtbl; - ULONG ref; + LONG ref; /* * Support for the LockBytes object diff --git a/dlls/ole32/moniker.c b/dlls/ole32/moniker.c index 816f506b872..1e7bf8840f3 100644 --- a/dlls/ole32/moniker.c +++ b/dlls/ole32/moniker.c @@ -60,7 +60,7 @@ struct rot_entry typedef struct RunningObjectTableImpl { const IRunningObjectTableVtbl *lpVtbl; - ULONG ref; + LONG ref; struct list rot; /* list of ROT entries */ CRITICAL_SECTION lock; @@ -73,7 +73,7 @@ static RunningObjectTableImpl* runningObjectTableInstance = NULL; static inline HRESULT WINAPI IrotRegister(DWORD *cookie) { - static DWORD last_cookie = 1; + static LONG last_cookie = 1; *cookie = InterlockedIncrement(&last_cookie); return S_OK; } @@ -82,7 +82,7 @@ IrotRegister(DWORD *cookie) typedef struct EnumMonikerImpl { const IEnumMonikerVtbl *lpVtbl; - ULONG ref; + LONG ref; MInterfacePointer **monikers; ULONG moniker_count; @@ -988,7 +988,7 @@ typedef struct MonikerMarshal const IUnknownVtbl *lpVtbl; const IMarshalVtbl *lpVtblMarshal; - ULONG ref; + LONG ref; IMoniker *moniker; } MonikerMarshal; diff --git a/dlls/ole32/ole16.c b/dlls/ole32/ole16.c index 57f24c8fe58..0ef61a8f4aa 100644 --- a/dlls/ole32/ole16.c +++ b/dlls/ole32/ole16.c @@ -370,7 +370,7 @@ HRESULT WINAPI ProgIDFromCLSID16( if (ret == S_OK) { - DWORD buf2len; + LONG buf2len; char *buf2 = HeapAlloc(GetProcessHeap(), 0, 255); buf2len = 255; if (RegQueryValueA(xhkey, NULL, buf2, &buf2len)) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index bca4b9ae789..b3c9bd8ac32 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -394,7 +394,7 @@ HRESULT WINAPI OleRegGetUserType( DWORD cbData; HKEY clsidKey; LONG hres; - LPBYTE buffer; + LPSTR buffer; HRESULT retVal; /* * Initialize the out parameter. @@ -464,7 +464,7 @@ HRESULT WINAPI OleRegGetUserType( "", NULL, &dwKeyType, - buffer, + (LPBYTE) buffer, &cbData); RegCloseKey(clsidKey); diff --git a/dlls/ole32/oleobj.c b/dlls/ole32/oleobj.c index eb630bc9c67..0c77121694a 100644 --- a/dlls/ole32/oleobj.c +++ b/dlls/ole32/oleobj.c @@ -43,7 +43,7 @@ typedef struct OleAdviseHolderImpl { const IOleAdviseHolderVtbl *lpVtbl; - DWORD ref; + LONG ref; DWORD maxSinks; IAdviseSink** arrayOfSinks; @@ -357,7 +357,7 @@ typedef struct DataAdviseHolder { const IDataAdviseHolderVtbl *lpVtbl; - DWORD ref; + LONG ref; DWORD maxCons; DataAdviseConnection* Connections; } DataAdviseHolder; diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index 400096fbc4e..a5c7898eb0b 100644 --- a/dlls/ole32/oleproxy.c +++ b/dlls/ole32/oleproxy.c @@ -88,7 +88,7 @@ const CLSID CLSID_PSFactoryBuffer = { 0x00000320, 0, 0, {0xc0, 0, 0, 0, 0, 0, 0, */ typedef struct _CFStub { const IRpcStubBufferVtbl *lpvtbl; - DWORD ref; + LONG ref; LPUNKNOWN pUnkServer; } CFStub; @@ -268,7 +268,7 @@ CFStub_Construct(LPRPCSTUBBUFFER *ppv) { typedef struct _CFProxy { const IClassFactoryVtbl *lpvtbl_cf; const IRpcProxyBufferVtbl *lpvtbl_proxy; - DWORD ref; + LONG ref; IRpcChannelBuffer *chanbuf; IUnknown *outer_unknown; @@ -459,7 +459,7 @@ CFProxy_Construct(IUnknown *pUnkOuter, LPVOID *ppv,LPVOID *ppProxy) { typedef struct { const IRpcStubBufferVtbl *lpVtbl; - ULONG refs; + LONG refs; IRemUnknown *iface; } RemUnkStub; @@ -664,7 +664,7 @@ static HRESULT RemUnkStub_Construct(IRpcStubBuffer **ppStub) typedef struct _RemUnkProxy { const IRemUnknownVtbl *lpvtbl_remunk; const IRpcProxyBufferVtbl *lpvtbl_proxy; - DWORD refs; + LONG refs; IRpcChannelBuffer *chan; IUnknown *outer_unknown; diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index da9535d275b..a68a7c81611 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -88,7 +88,7 @@ static inline void get_rpc_endpoint(LPWSTR endpoint, const OXID *oxid) typedef struct { const IRpcChannelBufferVtbl *lpVtbl; - DWORD refs; + LONG refs; } RpcChannelBuffer; typedef struct diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index aab99dde8a9..fe6d1fb453c 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -155,7 +155,7 @@ static const IPropertyStorageVtbl IPropertyStorage_Vtbl; typedef struct tagPropertyStorage_impl { const IPropertyStorageVtbl *vtbl; - DWORD ref; + LONG ref; CRITICAL_SECTION cs; IStream *stm; BOOL dirty; diff --git a/dlls/ole32/storage.c b/dlls/ole32/storage.c index 715c3e60d01..3bdc063045c 100644 --- a/dlls/ole32/storage.c +++ b/dlls/ole32/storage.c @@ -956,7 +956,7 @@ typedef struct { /* IUnknown fields */ const IStream16Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IStream16 fields */ SEGPTR thisptr; /* pointer to this struct as segmented */ struct storage_pps_entry stde; @@ -1450,7 +1450,7 @@ typedef struct { /* IUnknown fields */ const IStreamVtbl *lpVtbl; - DWORD ref; + LONG ref; /* IStream32 fields */ struct storage_pps_entry stde; int ppsent; @@ -1504,7 +1504,7 @@ typedef struct { /* IUnknown fields */ const IStorage16Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IStorage16 fields */ SEGPTR thisptr; /* pointer to this struct as segmented */ struct storage_pps_entry stde; diff --git a/dlls/ole32/storage32.h b/dlls/ole32/storage32.h index 4358a19b773..4061a064bfd 100644 --- a/dlls/ole32/storage32.h +++ b/dlls/ole32/storage32.h @@ -222,7 +222,7 @@ struct StorageBaseImpl /* * Reference count of this object */ - ULONG ref; + LONG ref; /* * Ancestor storage (top level) @@ -430,7 +430,7 @@ struct IEnumSTATSTGImpl const IEnumSTATSTGVtbl *lpVtbl; /* Needs to be the first item in the struct * since we want to cast this in an IEnumSTATSTG pointer */ - ULONG ref; /* Reference count */ + LONG ref; /* Reference count */ StorageImpl* parentStorage; /* Reference to the parent storage */ ULONG firstPropertyNode; /* Index of the root of the storage to enumerate */ @@ -487,7 +487,7 @@ struct StgStreamImpl /* * Reference count */ - ULONG ref; + LONG ref; /* * Storage that is the parent(owner) of the stream diff --git a/dlls/ole32/stubmanager.c b/dlls/ole32/stubmanager.c index 76cc8fa54a5..4c253c9a25c 100644 --- a/dlls/ole32/stubmanager.c +++ b/dlls/ole32/stubmanager.c @@ -539,7 +539,7 @@ const IID IID_IRemUnknown = { 0x00000131, 0, 0, {0xc0, 0, 0, 0, 0, 0, 0, 0x46} } typedef struct rem_unknown { const IRemUnknownVtbl *lpVtbl; - ULONG refs; + LONG refs; } RemUnknown; static const IRemUnknownVtbl RemUnknown_Vtbl;