mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Update miniwin/miniwin/src/miniwin_ddraw.cpp
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
This commit is contained in:
parent
63adb2f02a
commit
3b2e97b46e
@ -271,12 +271,12 @@ HRESULT DirectDrawImpl::CreateDevice(const GUID& guid, void* pBackBuffer, IDirec
|
|||||||
|
|
||||||
HRESULT DirectDrawCreate(LPGUID lpGuid, LPDIRECTDRAW* lplpDD, IUnknown* pUnkOuter)
|
HRESULT DirectDrawCreate(LPGUID lpGuid, LPDIRECTDRAW* lplpDD, IUnknown* pUnkOuter)
|
||||||
{
|
{
|
||||||
if (!lplpDD) {
|
|
||||||
return DDERR_INVALIDPARAMS;
|
|
||||||
}
|
|
||||||
if (lpGuid) {
|
if (lpGuid) {
|
||||||
MINIWIN_ERROR("Specifying a DirectDraw driver is not implemented");
|
MINIWIN_ERROR("Specifying a DirectDraw driver is not implemented");
|
||||||
}
|
}
|
||||||
|
if (!lplpDD) {
|
||||||
|
return DDERR_INVALIDPARAMS;
|
||||||
|
}
|
||||||
|
|
||||||
*lplpDD = new DirectDrawImpl;
|
*lplpDD = new DirectDrawImpl;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user