1
0
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:
FunkyFr3sh 2020-10-15 07:22:48 +02:00
parent ae4b72c9c9
commit 1ebacfcd27
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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);

View File

@ -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 };