Skip to content

Commit a04d7c3

Browse files
committed
[0.4.9] [WINE DIRECTX] Sledge-hammer-revert to avoid CORE-14534
This commit reverts dll/directx/wine/* and sdk/include/reactos/wine/wined3d.h to the state of 0.4.8rls. The current state of Ddraw without this revert is totally broken, so we need this interim solution. I will happily replace it with a proper fix if someone finds one until release.
1 parent 4de8a0d commit a04d7c3

File tree

249 files changed

+5216
-10990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+5216
-10990
lines changed

dll/directx/wine/amstream/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ list(APPEND SOURCE
1010
main.c
1111
mediastream.c
1212
mediastreamfilter.c
13-
precomp.h)
13+
amstream_private.h)
1414

1515
add_library(amstream SHARED
1616
${SOURCE}
@@ -20,5 +20,5 @@ add_library(amstream SHARED
2020
set_module_type(amstream win32dll)
2121
target_link_libraries(amstream strmbase strmiids uuid wine)
2222
add_importlibs(amstream ole32 ddraw user32 msvcrt kernel32 ntdll)
23-
add_pch(amstream precomp.h SOURCE)
23+
add_pch(amstream amstream_private.h SOURCE)
2424
add_cd_file(TARGET amstream DESTINATION reactos/system32 FOR all)

dll/directx/wine/amstream/amstream.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,8 @@
1919
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
2020
*/
2121

22-
#include "wine/debug.h"
23-
24-
#define COBJMACROS
25-
26-
#include "winbase.h"
27-
#include "wingdi.h"
28-
2922
#include "amstream_private.h"
3023

31-
WINE_DEFAULT_DEBUG_CHANNEL(amstream);
32-
3324
typedef struct {
3425
IAMMultiMediaStream IAMMultiMediaStream_iface;
3526
LONG ref;

dll/directx/wine/amstream/amstream_private.h

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,15 @@
2121
#ifndef __AMSTREAM_PRIVATE_INCLUDED__
2222
#define __AMSTREAM_PRIVATE_INCLUDED__
2323

24-
#include <stdarg.h>
24+
#define WIN32_NO_STATUS
25+
#define WIN32_LEAN_AND_MEAN
26+
#define COBJMACROS
2527

26-
#include "windef.h"
27-
#include "winbase.h"
28-
#include "wtypes.h"
29-
#include "wingdi.h"
30-
#include "winuser.h"
31-
#include "dshow.h"
32-
#include "mmstream.h"
33-
#include "austream.h"
34-
#include "amstream.h"
28+
#include <dshow.h>
29+
#include <amstream.h>
30+
31+
#include <wine/debug.h>
32+
WINE_DEFAULT_DEBUG_CHANNEL(amstream);
3533

3634
HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
3735
HRESULT AMAudioData_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;

dll/directx/wine/amstream/audiodata.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,8 @@
1818
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
1919
*/
2020

21-
#include "wine/debug.h"
22-
23-
#define COBJMACROS
24-
25-
#include "winbase.h"
2621
#include "amstream_private.h"
2722

28-
WINE_DEFAULT_DEBUG_CHANNEL(amstream);
29-
3023
typedef struct {
3124
IAudioData IAudioData_iface;
3225
LONG ref;

dll/directx/wine/amstream/main.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,9 @@
1818
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
1919
*/
2020

21-
#include <stdarg.h>
22-
#include <string.h>
23-
24-
#define COBJMACROS
25-
26-
#include "windef.h"
27-
#include "winbase.h"
28-
#include "winuser.h"
29-
#include "winerror.h"
30-
31-
#include "ole2.h"
32-
#include "rpcproxy.h"
33-
3421
#include "amstream_private.h"
3522

36-
#include "wine/debug.h"
37-
38-
WINE_DEFAULT_DEBUG_CHANNEL(amstream);
23+
#include <rpcproxy.h>
3924

4025
static HINSTANCE instance;
4126

0 commit comments

Comments
 (0)