Skip to content

Commit ece9a11

Browse files
committed
[ARWINSS]
- Fix win32k compilation. Now Arwinss compiles in trunk again! \o/ svn path=/branches/arwinss/; revision=64717
1 parent dacf595 commit ece9a11

File tree

7 files changed

+8
-19
lines changed

7 files changed

+8
-19
lines changed

arwinss/server/eng/device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ PrepareVideoPrt()
457457

458458
KeClearEvent(&PrimarySurface.VideoFileObject->Event);
459459

460-
ObReferenceObjectByPointer(FileObject, 0, IoFileObjectType, KernelMode);
460+
ObReferenceObjectByPointer(FileObject, 0, *IoFileObjectType, KernelMode);
461461

462462
StartOffset.QuadPart = 0;
463463
Irp = IoBuildSynchronousFsdRequest(IRP_MJ_WRITE,

arwinss/server/eng/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ PFILE_OBJECT DRIVER_FindMPDriver(ULONG DisplayNumber)
521521
{
522522
Status = ObReferenceObjectByHandle(DisplayHandle,
523523
FILE_READ_DATA | FILE_WRITE_DATA,
524-
IoFileObjectType,
524+
*IoFileObjectType,
525525
KernelMode,
526526
(PVOID *)&VideoFileObject,
527527
NULL);

arwinss/server/eng/engblt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ EngAlphaBlend(IN SURFOBJ* psoDest,
448448
{
449449
RECTL SourceStretchedRect;
450450
SIZEL SourceStretchedSize;
451-
HBITMAP SourceStretchedBitmap = 0;
451+
HSURF SourceStretchedBitmap = 0;
452452
SURFOBJ* SourceStretchedObj = NULL;
453453
RECTL InputRect;
454454
RECTL OutputRect;
@@ -544,7 +544,7 @@ EngAlphaBlend(IN SURFOBJ* psoDest,
544544
Width = DIB_GetDIBWidthBytes(SourceStretchedSize.cx, BitsPerFormat(psoSource->iBitmapFormat));
545545
/* FIXME: Maybe it is a good idea to use EngCreateDeviceBitmap and IntEngStretchBlt
546546
if possible to get a HW accelerated stretch. */
547-
SourceStretchedBitmap = EngCreateBitmap(SourceStretchedSize, Width, psoSource->iBitmapFormat,
547+
SourceStretchedBitmap = (HSURF)EngCreateBitmap(SourceStretchedSize, Width, psoSource->iBitmapFormat,
548548
BMF_TOPDOWN | BMF_NOZEROINIT, NULL);
549549

550550
if (SourceStretchedBitmap == 0)

arwinss/server/eng/engbrush.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ EngRealizeBrush(
143143
ULONG iHatch)
144144
{
145145
EBRUSHOBJ *pebo;
146-
HBITMAP hbmpRealize;
146+
HSURF hbmpRealize;
147147
SURFOBJ *psoRealize;
148148
POINTL ptlSrc = {0, 0};
149149
RECTL rclDest;
@@ -154,7 +154,7 @@ EngRealizeBrush(
154154
BitsPerFormat(psoDst->iBitmapFormat));
155155

156156
/* Allocate a bitmap */
157-
hbmpRealize = EngCreateBitmap(psoPattern->sizlBitmap,
157+
hbmpRealize = (HSURF)EngCreateBitmap(psoPattern->sizlBitmap,
158158
lWidth,
159159
psoDst->iBitmapFormat,
160160
BMF_NOZEROINIT,

arwinss/server/eng/engmisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ VidMemFree(LPVMEMHEAP pvmh,
6565
return;
6666
}
6767

68-
DWORD
68+
HRESULT
6969
APIENTRY
7070
EngDxIoctl(ULONG ulIoctl,
7171
PVOID pBuffer,

arwinss/server/main/init.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -331,16 +331,6 @@ Win32kWindowStationOpenProcedure(PWIN32_OPENMETHOD_PARAMETERS Parameters)
331331
return STATUS_SUCCESS;
332332
}
333333

334-
NTSTATUS
335-
APIENTRY
336-
Win32kWin32DataCollectionProcedure(PEPROCESS Process,
337-
PVOID Callback,
338-
PVOID Context)
339-
{
340-
UNIMPLEMENTED;
341-
return STATUS_SUCCESS;
342-
}
343-
344334
NTSTATUS
345335
APIENTRY
346336
NtGdiFlushUserBatch(VOID)
@@ -428,7 +418,6 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
428418
CalloutData.WindowStationDeleteProcedure = (PKWIN32_SESSION_CALLOUT)Win32kWindowStationDeleteProcedure;
429419
CalloutData.WindowStationParseProcedure = (PKWIN32_SESSION_CALLOUT)Win32kWindowStationParseProcedure;
430420
CalloutData.WindowStationOpenProcedure = (PKWIN32_SESSION_CALLOUT)Win32kWindowStationOpenProcedure;
431-
CalloutData.Win32DataCollectionProcedure = Win32kWin32DataCollectionProcedure;
432421

433422
/* Register them */
434423
PsEstablishWin32Callouts(&CalloutData);

arwinss/server/wine/process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DECL_HANDLER(get_process_idle_event)
4141
/* Reference the process */
4242
Status = ObReferenceObjectByHandle((HANDLE)req->handle,
4343
PROCESS_QUERY_INFORMATION,
44-
PsProcessType,
44+
*PsProcessType,
4545
KernelMode,
4646
(PVOID*)&ProcessObject,
4747
NULL);

0 commit comments

Comments
 (0)