diff --git a/dlls/amstream/amstream.c b/dlls/amstream/amstream.c index 2ce5225424d..11ee07a842a 100644 --- a/dlls/amstream/amstream.c +++ b/dlls/amstream/amstream.c @@ -36,7 +36,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(amstream); typedef struct { IAMMultiMediaStream lpVtbl; - ULONG ref; + LONG ref; } IAMMultiMediaStreamImpl; static const struct IAMMultiMediaStreamVtbl AM_Vtbl; diff --git a/dlls/amstream/main.c b/dlls/amstream/main.c index 161de18f806..270002037dc 100644 --- a/dlls/amstream/main.c +++ b/dlls/amstream/main.c @@ -64,7 +64,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) typedef struct { IClassFactory ITF_IClassFactory; - DWORD ref; + LONG ref; HRESULT (*pfnCreateInstance)(IUnknown *pUnkOuter, LPVOID *ppObj); } IClassFactoryImpl; diff --git a/dlls/atl/registrar.c b/dlls/atl/registrar.c index b7f66091459..ed4ea7ec14e 100644 --- a/dlls/atl/registrar.c +++ b/dlls/atl/registrar.c @@ -37,7 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(atl); -ULONG dll_count = 0; +LONG dll_count = 0; /************************************************************** * ATLRegistrar implementation @@ -79,7 +79,7 @@ typedef struct rep_list_str { typedef struct { const IRegistrarVtbl *lpVtbl; - ULONG ref; + LONG ref; rep_list *rep; } Registrar; diff --git a/dlls/comcat/comcat_main.c b/dlls/comcat/comcat_main.c index 33af933f37e..6c892357f0e 100644 --- a/dlls/comcat/comcat_main.c +++ b/dlls/comcat/comcat_main.c @@ -24,7 +24,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); -DWORD dll_ref = 0; +LONG dll_ref = 0; /*********************************************************************** * Global string constant definitions diff --git a/dlls/comcat/comcat_private.h b/dlls/comcat/comcat_private.h index 870d1d394ff..ee620ef6d53 100644 --- a/dlls/comcat/comcat_private.h +++ b/dlls/comcat/comcat_private.h @@ -38,7 +38,7 @@ /********************************************************************** * Dll lifetime tracking declaration for comcat.dll */ -extern DWORD dll_ref; +extern LONG dll_ref; /********************************************************************** * ClassFactory declaration for comcat.dll @@ -47,7 +47,7 @@ typedef struct { /* IUnknown fields */ const IClassFactoryVtbl *lpVtbl; - DWORD ref; + LONG ref; } ClassFactoryImpl; extern ClassFactoryImpl COMCAT_ClassFactory; @@ -61,7 +61,7 @@ typedef struct const IUnknownVtbl *unkVtbl; const ICatRegisterVtbl *regVtbl; const ICatInformationVtbl *infVtbl; - DWORD ref; + LONG ref; } ComCatMgrImpl; extern const ComCatMgrImpl COMCAT_ComCatMgr; diff --git a/dlls/comcat/information.c b/dlls/comcat/information.c index e4a7f86a264..782fe5116a0 100644 --- a/dlls/comcat/information.c +++ b/dlls/comcat/information.c @@ -298,7 +298,7 @@ const ICatInformationVtbl COMCAT_ICatInformation_Vtbl = typedef struct { const IEnumCATEGORYINFOVtbl *lpVtbl; - DWORD ref; + LONG ref; LCID lcid; HKEY key; DWORD next_index; @@ -602,7 +602,7 @@ static HRESULT COMCAT_IsClassOfCategories( typedef struct { const IEnumGUIDVtbl *lpVtbl; - DWORD ref; + LONG ref; const struct class_categories *categories; HKEY key; DWORD next_index; @@ -795,7 +795,7 @@ static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct( typedef struct { const IEnumGUIDVtbl *lpVtbl; - DWORD ref; + LONG ref; WCHAR keyname[68]; HKEY key; DWORD next_index; diff --git a/dlls/d3d8/d3d8_private.h b/dlls/d3d8/d3d8_private.h index c1ec0bb097f..f0f43af02c4 100644 --- a/dlls/d3d8/d3d8_private.h +++ b/dlls/d3d8/d3d8_private.h @@ -342,7 +342,7 @@ struct IDirect3D8Impl { /* IUnknown fields */ const IDirect3D8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* The WineD3D device */ IWineD3D *WineD3D; @@ -395,7 +395,7 @@ struct IDirect3DDevice8Impl { /* IUnknown fields */ const IDirect3DDevice8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DDevice8 fields */ IDirect3D8Impl *direct3d8; @@ -590,7 +590,7 @@ struct IDirect3DVolume8Impl { /* IUnknown fields */ const IDirect3DVolume8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DVolume8 fields */ IDirect3DDevice8Impl *Device; @@ -644,7 +644,7 @@ struct IDirect3DSwapChain8Impl { /* IUnknown fields */ const IDirect3DSwapChain8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DSwapChain8 fields */ IDirect3DSurface8Impl *frontBuffer; @@ -686,7 +686,7 @@ struct IDirect3DSurface8Impl { /* IUnknown fields */ const IDirect3DSurface8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DSurface8 fields */ IDirect3DDevice8Impl *Device; @@ -746,7 +746,7 @@ struct IDirect3DResource8Impl { /* IUnknown fields */ const IDirect3DResource8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DResource8 fields */ IDirect3DDevice8Impl *Device; @@ -788,7 +788,7 @@ struct IDirect3DVertexBuffer8Impl { /* IUnknown fields */ const IDirect3DVertexBuffer8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DResource8 fields */ IDirect3DDevice8Impl *Device; @@ -836,7 +836,7 @@ struct IDirect3DIndexBuffer8Impl { /* IUnknown fields */ const IDirect3DIndexBuffer8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DResource8 fields */ IDirect3DDevice8Impl *Device; @@ -879,7 +879,7 @@ struct IDirect3DBaseTexture8Impl { /* IUnknown fields */ const IDirect3DBaseTexture8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DResource8 fields */ IDirect3DDevice8Impl *Device; @@ -936,7 +936,7 @@ struct IDirect3DCubeTexture8Impl { /* IUnknown fields */ const IDirect3DCubeTexture8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DResource8 fields */ IDirect3DDevice8Impl *Device; @@ -998,7 +998,7 @@ struct IDirect3DTexture8Impl { /* IUnknown fields */ const IDirect3DTexture8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DResourc8 fields */ IDirect3DDevice8Impl *Device; @@ -1061,7 +1061,7 @@ struct IDirect3DVolumeTexture8Impl { /* IUnknown fields */ const IDirect3DVolumeTexture8Vtbl *lpVtbl; - DWORD ref; + LONG ref; /* IDirect3DResource8 fields */ IDirect3DDevice8Impl *Device; @@ -1149,7 +1149,7 @@ typedef struct SAVEDSTATES { struct IDirect3DStateBlockImpl { /* IUnknown fields */ /*const IDirect3DStateBlock9Vtbl *lpVtbl;*/ - DWORD ref; + LONG ref; /* The device, to be replaced by an IDirect3DDeviceImpl */ IDirect3DDevice8Impl* device; @@ -1238,7 +1238,7 @@ extern HRESULT WINAPI IDirect3DDeviceImpl_CaptureStateBlock(IDirect3DDevice8Impl struct IDirect3DVertexShaderDeclarationImpl { /* IUnknown fields */ /*const IDirect3DVertexShaderDeclaration9Vtbl *lpVtbl;*/ - DWORD ref; + LONG ref; /* The device, to be replaced by an IDirect3DDeviceImpl */ IDirect3DDevice8Impl* device; @@ -1274,7 +1274,7 @@ extern HRESULT WINAPI IDirect3DDeviceImpl_CreateVertexShaderDeclaration8(IDirect */ struct IDirect3DVertexShaderImpl { /*const IDirect3DVertexShader9Vtbl *lpVtbl;*/ - DWORD ref; + LONG ref; /* The device, to be replaced by an IDirect3DDeviceImpl */ IDirect3DDevice8Impl* device; @@ -1323,7 +1323,7 @@ extern HRESULT WINAPI IDirect3DDeviceImpl_FillVertexShaderInputArbHW(IDirect3DDe */ struct IDirect3DPixelShaderImpl { /*const IDirect3DPixelShader9Vtbl *lpVtbl;*/ - DWORD ref; + LONG ref; /* The device, to be replaced by an IDirect3DDeviceImpl */ IDirect3DDevice8Impl* device; diff --git a/dlls/d3dx8/d3dx8core_private.h b/dlls/d3dx8/d3dx8core_private.h index 7ce85b12635..edc451fefbe 100644 --- a/dlls/d3dx8/d3dx8core_private.h +++ b/dlls/d3dx8/d3dx8core_private.h @@ -47,7 +47,7 @@ struct ID3DXBufferImpl { /* IUnknown fields */ const ID3DXBufferVtbl *lpVtbl; - DWORD ref; + LONG ref; /* ID3DXBuffer fields */ DWORD *buffer; @@ -79,7 +79,7 @@ struct ID3DXFontImpl { /* IUnknown fields */ const ID3DXFontVtbl *lpVtbl; - DWORD ref; + LONG ref; /* ID3DXFont fields */ }; diff --git a/dlls/ddraw/d3d_private.h b/dlls/ddraw/d3d_private.h index ddcffa4d054..99adb645065 100644 --- a/dlls/ddraw/d3d_private.h +++ b/dlls/ddraw/d3d_private.h @@ -67,7 +67,7 @@ typedef struct STATEBLOCK { struct IDirect3DLightImpl { ICOM_VFIELD_MULTI(IDirect3DLight); - DWORD ref; + LONG ref; /* IDirect3DLight fields */ IDirectDrawImpl *d3d; /* If this light is active for one viewport, put the viewport here */ @@ -95,7 +95,7 @@ struct IDirect3DMaterialImpl ICOM_VFIELD_MULTI(IDirect3DMaterial3); ICOM_VFIELD_MULTI(IDirect3DMaterial2); ICOM_VFIELD_MULTI(IDirect3DMaterial); - DWORD ref; + LONG ref; /* IDirect3DMaterial2 fields */ IDirectDrawImpl *d3d; IDirect3DDeviceImpl *active_device; @@ -111,7 +111,7 @@ struct IDirect3DMaterialImpl struct IDirect3DViewportImpl { ICOM_VFIELD_MULTI(IDirect3DViewport3); - DWORD ref; + LONG ref; /* IDirect3DViewport fields */ IDirectDrawImpl *d3d; /* If this viewport is active for one device, put the device here */ @@ -145,7 +145,7 @@ struct IDirect3DViewportImpl struct IDirect3DExecuteBufferImpl { ICOM_VFIELD_MULTI(IDirect3DExecuteBuffer); - DWORD ref; + LONG ref; /* IDirect3DExecuteBuffer fields */ IDirectDrawImpl *d3d; IDirect3DDeviceImpl* d3ddev; @@ -195,7 +195,7 @@ struct IDirect3DDeviceImpl ICOM_VFIELD_MULTI(IDirect3DDevice3); ICOM_VFIELD_MULTI(IDirect3DDevice2); ICOM_VFIELD_MULTI(IDirect3DDevice); - DWORD ref; + LONG ref; /* Version of the Direct3D object from which the device has been created */ DWORD version; @@ -260,7 +260,7 @@ struct IDirect3DVertexBufferImpl { ICOM_VFIELD_MULTI(IDirect3DVertexBuffer7); ICOM_VFIELD_MULTI(IDirect3DVertexBuffer); - DWORD ref; + LONG ref; IDirectDrawImpl *d3d; D3DVERTEXBUFFERDESC desc; LPVOID *vertices; diff --git a/dlls/ddraw/ddraw_private.h b/dlls/ddraw/ddraw_private.h index 32d57bd465a..ee97e4caba6 100644 --- a/dlls/ddraw/ddraw_private.h +++ b/dlls/ddraw/ddraw_private.h @@ -86,7 +86,7 @@ struct IDirectDrawImpl ICOM_VFIELD_MULTI(IDirect3D2); ICOM_VFIELD_MULTI(IDirect3D); - DWORD ref; + LONG ref; /* TRUE if created via DirectDrawCreateEx or CoCreateInstance, * FALSE if created via DirectDrawCreate. */ @@ -198,7 +198,7 @@ struct IDirectDrawPaletteImpl { /* IUnknown fields */ ICOM_VFIELD_MULTI(IDirectDrawPalette); - DWORD ref; + LONG ref; DDRAWI_DDRAWPALETTE_LCL local; DDRAWI_DDRAWPALETTE_GBL global; @@ -226,7 +226,7 @@ struct IDirectDrawClipperImpl { /* IUnknown fields */ ICOM_VFIELD_MULTI(IDirectDrawClipper); - DWORD ref; + LONG ref; /* IDirectDrawClipper fields */ HWND hWnd; @@ -248,7 +248,7 @@ struct IDirectDrawSurfaceImpl ICOM_VFIELD_MULTI(IDirectDrawGammaControl); ICOM_VFIELD_MULTI(IDirect3DTexture2); ICOM_VFIELD_MULTI(IDirect3DTexture); - DWORD ref; + LONG ref; struct IDirectDrawSurfaceImpl* attached; /* attached surfaces */ diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c index 83b3533a56a..c84dbc7fa7a 100644 --- a/dlls/ddraw/main.c +++ b/dlls/ddraw/main.c @@ -450,7 +450,7 @@ static HRESULT DDRAW_CreateDirectDraw(IUnknown* pUnkOuter, REFIID iid, typedef struct { ICOM_VFIELD_MULTI(IClassFactory); - DWORD ref; + LONG ref; HRESULT (*pfnCreateInstance)(IUnknown *pUnkOuter, REFIID iid, LPVOID *ppObj); } IClassFactoryImpl; diff --git a/dlls/devenum/devenum_private.h b/dlls/devenum/devenum_private.h index 3cebff393a1..4b6083a1fc6 100644 --- a/dlls/devenum/devenum_private.h +++ b/dlls/devenum/devenum_private.h @@ -69,7 +69,7 @@ typedef struct typedef struct { const IEnumMonikerVtbl *lpVtbl; - DWORD ref; + LONG ref; DWORD index; HKEY hkey; } EnumMonikerImpl; @@ -77,7 +77,7 @@ typedef struct typedef struct { const IMonikerVtbl *lpVtbl; - ULONG ref; + LONG ref; HKEY hkey; } MediaCatMoniker; diff --git a/dlls/devenum/mediacatenum.c b/dlls/devenum/mediacatenum.c index a8685e212d4..bce7b3d3fd6 100644 --- a/dlls/devenum/mediacatenum.c +++ b/dlls/devenum/mediacatenum.c @@ -41,7 +41,7 @@ static ULONG WINAPI DEVENUM_IPropertyBag_AddRef(LPPROPERTYBAG iface); typedef struct { const IPropertyBagVtbl *lpVtbl; - DWORD ref; + LONG ref; HKEY hkey; } RegPropBagImpl;