mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
comment on ddraw passthrough
This commit is contained in:
parent
ae4b72c9c9
commit
1ebacfcd27
@ -5,7 +5,7 @@
|
||||
#include <windows.h>
|
||||
|
||||
extern BOOL GameHandlesClose;
|
||||
extern void* FakePrimarySurface;
|
||||
extern PVOID FakePrimarySurface;
|
||||
extern HMODULE g_ddraw_module;
|
||||
|
||||
typedef enum PROCESS_DPI_AWARENESS {
|
||||
|
2
src/dd.c
2
src/dd.c
@ -827,7 +827,7 @@ HRESULT dd_CreateEx(GUID* lpGuid, LPVOID* lplpDD, REFIID iid, IUnknown* pUnkOute
|
||||
{
|
||||
if (g_ddraw)
|
||||
{
|
||||
/* FIXME: check the calling module before passing the call! */
|
||||
/* Passthrough required for WIN XP - FIXME: check the calling module before passing the call! */
|
||||
if (iid && IsEqualGUID(&IID_IDirectDraw, iid) && g_ddraw->DirectDrawCreate)
|
||||
{
|
||||
return g_ddraw->DirectDrawCreate(lpGuid, (LPDIRECTDRAW*)lplpDD, pUnkOuter);
|
||||
|
@ -41,7 +41,7 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
||||
|
||||
while (s)
|
||||
{
|
||||
if (_strcmpi(s, "WIN95") == 0 || strcmpi(s, "WIN98") == 0 || strcmpi(s, "NT4SP5") == 0)
|
||||
if (_strcmpi(s, "WIN95") == 0 || _strcmpi(s, "WIN98") == 0 || _strcmpi(s, "NT4SP5") == 0)
|
||||
{
|
||||
char mes[128] = { 0 };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user