mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
- Fix errors during optimized build.
svn path=/trunk/; revision=9983
This commit is contained in:
parent
e251c53983
commit
8fab52126f
76 changed files with 191 additions and 205 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: fiber.c,v 1.2 2004/03/07 20:07:04 hyperion Exp $
|
||||
/* $Id: fiber.c,v 1.3 2004/07/03 17:40:19 navaraf Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -180,7 +180,7 @@ void Fbt_Dispatch(struct FiberData * pfdCur, int bExit)
|
|||
int k;
|
||||
int b;
|
||||
int bResume;
|
||||
PLIST_ENTRY ple;
|
||||
PLIST_ENTRY ple = NULL;
|
||||
|
||||
bResume = 0;
|
||||
i = 0;
|
||||
|
|
|
@ -41,7 +41,6 @@ main(int argc, char *argv[])
|
|||
|
||||
while (z < 50)
|
||||
{
|
||||
TerminateThread(thread, 0);
|
||||
z++;
|
||||
thread=CreateThread(NULL,
|
||||
0x1000,
|
||||
|
@ -69,6 +68,7 @@ main(int argc, char *argv[])
|
|||
SuspendThread(thread);
|
||||
printf("R");
|
||||
ResumeThread(thread);
|
||||
TerminateThread(thread, 0);
|
||||
}
|
||||
|
||||
ExitProcess(0);
|
||||
|
|
|
@ -142,7 +142,6 @@ int main (int argc, char *argv[])
|
|||
CloseHandle(hDisk);
|
||||
printf("DeviceIoControl failed! Error: %lu\n",
|
||||
GetLastError());
|
||||
free(Buffer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: isapnp.c,v 1.9 2004/02/10 16:22:54 navaraf Exp $
|
||||
/* $Id: isapnp.c,v 1.10 2004/07/03 17:40:20 navaraf Exp $
|
||||
*
|
||||
* PROJECT: ReactOS ISA PnP Bus driver
|
||||
* FILE: isapnp.c
|
||||
|
@ -584,7 +584,7 @@ static NTSTATUS AddIrqResource(
|
|||
{
|
||||
PISAPNP_DESCRIPTOR Descriptor;
|
||||
UCHAR tmp[3];
|
||||
ULONG irq, i, last;
|
||||
ULONG irq, i, last = 0;
|
||||
BOOLEAN found;
|
||||
NTSTATUS Status;
|
||||
|
||||
|
@ -639,7 +639,7 @@ static NTSTATUS AddDmaResource(
|
|||
{
|
||||
PISAPNP_DESCRIPTOR Descriptor;
|
||||
UCHAR tmp[2];
|
||||
ULONG dma, flags, i, last;
|
||||
ULONG dma, flags, i, last = 0;
|
||||
BOOLEAN found;
|
||||
NTSTATUS Status;
|
||||
|
||||
|
@ -1424,7 +1424,7 @@ ISAPNPQueryBusRelations(
|
|||
PISAPNP_LOGICAL_DEVICE LogicalDevice;
|
||||
PDEVICE_RELATIONS Relations;
|
||||
PLIST_ENTRY CurrentEntry;
|
||||
NTSTATUS Status;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
ULONG Size;
|
||||
ULONG i;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.4 2002/09/08 10:22:10 chorns Exp $
|
||||
/* $Id: create.c,v 1.5 2004/07/03 17:40:20 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -139,7 +139,6 @@ MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject,
|
|||
if (!RtlCreateUnicodeString(&Mailslot->Name, FileObject->FileName.Buffer))
|
||||
{
|
||||
ExFreePool(Mailslot);
|
||||
ExFreePool(Fcb);
|
||||
|
||||
Irp->IoStatus.Status = STATUS_NO_MEMORY;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.21 2004/05/10 19:58:10 navaraf Exp $
|
||||
/* $Id: create.c,v 1.22 2004/07/03 17:40:20 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -203,7 +203,7 @@ NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject,
|
|||
PNPFS_PIPE Pipe;
|
||||
PNPFS_FCB Fcb;
|
||||
PLIST_ENTRY current_entry;
|
||||
PNPFS_PIPE current;
|
||||
PNPFS_PIPE current = NULL;
|
||||
PIO_PIPE_CREATE_BUFFER Buffer;
|
||||
|
||||
DPRINT("NpfsCreateNamedPipe(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
|
||||
|
|
|
@ -772,7 +772,6 @@ NTSTATUS AfdDispRecv(
|
|||
UINT OutputBufferLength;
|
||||
PFILE_REQUEST_RECVFROM Request;
|
||||
PFILE_REPLY_RECVFROM Reply;
|
||||
DWORD NumberOfBytesRecvd;
|
||||
PAFDFCB FCB;
|
||||
|
||||
AFD_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
@ -794,7 +793,7 @@ NTSTATUS AfdDispRecv(
|
|||
Request,
|
||||
Reply,
|
||||
TRUE);
|
||||
Reply->NumberOfBytesRecvd = NumberOfBytesRecvd;
|
||||
Reply->NumberOfBytesRecvd = 0; /* FIXME */
|
||||
Reply->Status = NO_ERROR;
|
||||
} else {
|
||||
Status = STATUS_INVALID_PARAMETER;
|
||||
|
@ -818,7 +817,7 @@ NTSTATUS AfdDispSend(
|
|||
* Status of operation
|
||||
*/
|
||||
{
|
||||
NTSTATUS Status;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
UINT InputBufferLength;
|
||||
UINT OutputBufferLength;
|
||||
PFILE_REQUEST_SEND Request;
|
||||
|
|
|
@ -68,7 +68,7 @@ AfdWrite(
|
|||
{
|
||||
PIO_STACK_LOCATION IoSp = IoGetCurrentIrpStackLocation(Irp);
|
||||
PFILE_OBJECT FileObject = IoSp->FileObject;
|
||||
NTSTATUS Status;
|
||||
NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
|
||||
ULONG Length;
|
||||
PVOID Buffer;
|
||||
ULONG Offset;
|
||||
|
|
|
@ -1044,7 +1044,7 @@ NTSTATUS TdiReceiveDatagram(
|
|||
*/
|
||||
{
|
||||
PTDI_CONNECTION_INFORMATION ReceiveInfo;
|
||||
PTDI_CONNECTION_INFORMATION ReturnInfo;
|
||||
TDI_CONNECTION_INFORMATION ReturnInfo;
|
||||
PDEVICE_OBJECT DeviceObject;
|
||||
IO_STATUS_BLOCK Iosb;
|
||||
NTSTATUS Status;
|
||||
|
@ -1111,12 +1111,12 @@ NTSTATUS TdiReceiveDatagram(
|
|||
Mdl, /* Data buffer */
|
||||
*BufferSize, /* Size of data buffer */
|
||||
ReceiveInfo, /* Connection information */
|
||||
ReturnInfo, /* Connection information */
|
||||
&ReturnInfo, /* Connection information */
|
||||
TDI_RECEIVE_NORMAL); /* Flags */
|
||||
Status = TdiCall(Irp, DeviceObject, &Event, &Iosb);
|
||||
if (NT_SUCCESS(Status)) {
|
||||
*BufferSize = Iosb.Information;
|
||||
TdiBuildName(Address, TdiGetRemoteAddress(ReturnInfo));
|
||||
TdiBuildName(Address, TdiGetRemoteAddress(&ReturnInfo));
|
||||
}
|
||||
|
||||
MmUnlockPages(Mdl);
|
||||
|
|
|
@ -864,7 +864,7 @@ NdisOpenConfigurationKeyByName(
|
|||
NDIS_HANDLE RegKeyHandle;
|
||||
|
||||
InitializeObjectAttributes(&KeyAttributes, KeyName, OBJ_CASE_INSENSITIVE, ConfigurationHandle, 0);
|
||||
*Status = ZwOpenKey(RegKeyHandle, KEY_ALL_ACCESS, &KeyAttributes);
|
||||
*Status = ZwOpenKey(&RegKeyHandle, KEY_ALL_ACCESS, &KeyAttributes);
|
||||
|
||||
if(*Status != STATUS_SUCCESS)
|
||||
{
|
||||
|
|
|
@ -46,7 +46,7 @@ NPF_OpenDumpFile(POPEN_INSTANCE Open , PUNICODE_STRING fileName, BOOLEAN Append)
|
|||
NTSTATUS ntStatus;
|
||||
IO_STATUS_BLOCK IoStatus;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
PWCHAR PathPrefix;
|
||||
PWCHAR PathPrefix = NULL;
|
||||
USHORT PathLen;
|
||||
UNICODE_STRING FullFileName;
|
||||
ULONG FullFileNameLength;
|
||||
|
|
|
@ -623,12 +623,12 @@ NPF_Unload(IN PDRIVER_OBJECT DriverObject)
|
|||
}
|
||||
|
||||
IoDeleteDevice(OldDeviceObject);
|
||||
}
|
||||
|
||||
NdisDeregisterProtocol(
|
||||
&Status,
|
||||
NdisProtocolHandle
|
||||
);
|
||||
}
|
||||
|
||||
// Free the adapters names
|
||||
ExFreePool( bindP );
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: cdrom.c,v 1.28 2004/05/09 14:50:50 hbirr Exp $
|
||||
/* $Id: cdrom.c,v 1.29 2004/07/03 17:40:21 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -233,7 +233,7 @@ CdromClassFindDevices(IN PDRIVER_OBJECT DriverObject,
|
|||
PCHAR Buffer;
|
||||
ULONG Bus;
|
||||
ULONG DeviceCount;
|
||||
BOOLEAN FoundDevice;
|
||||
BOOLEAN FoundDevice = FALSE;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT("CdromClassFindDevices() called.\n");
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: disk.c,v 1.42 2004/06/21 21:03:12 hbirr Exp $
|
||||
/* $Id: disk.c,v 1.43 2004/07/03 17:40:21 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -218,7 +218,7 @@ DiskClassFindDevices(PDRIVER_OBJECT DriverObject,
|
|||
PCHAR Buffer;
|
||||
ULONG Bus;
|
||||
ULONG DeviceCount;
|
||||
BOOLEAN FoundDevice;
|
||||
BOOLEAN FoundDevice = FALSE;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT("DiskClassFindDevices() called.\n");
|
||||
|
|
|
@ -86,6 +86,9 @@ DrvEnableSurface(
|
|||
case 32:
|
||||
BitmapType = BMF_32BPP;
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
ScreenSize.cx = ppdev->ScreenWidth;
|
||||
|
|
|
@ -389,7 +389,7 @@ DrvBitBlt(SURFOBJ *Dest,
|
|||
{
|
||||
PBLTRECTFUNC BltRectFunc;
|
||||
RECTL CombinedRect;
|
||||
BOOL Ret;
|
||||
BOOL Ret = FALSE;
|
||||
RECT_ENUM RectEnum;
|
||||
BOOL EnumMore;
|
||||
unsigned i;
|
||||
|
|
|
@ -11,11 +11,9 @@ BOOL VGADDIFillSolid(SURFOBJ *Surface, RECTL Dimensions, ULONG iColor)
|
|||
ULONG offset, j, pre1;
|
||||
ULONG orgpre1, orgx, midpre1, tmppre1;
|
||||
ULONG ileftpix, imidpix, irightpix;
|
||||
double leftpix, midpix, rightpix;
|
||||
/* double leftpix, midpix, rightpix;*/
|
||||
UCHAR a;
|
||||
|
||||
DPRINT("VGADDIFillSolid: x:%d, y:%d, w:%d, h:%d\n", x, y, w, h);
|
||||
|
||||
// Swap dimensions so that x, y are at topmost left
|
||||
if ( Dimensions.right < Dimensions.left )
|
||||
{
|
||||
|
@ -42,6 +40,8 @@ BOOL VGADDIFillSolid(SURFOBJ *Surface, RECTL Dimensions, ULONG iColor)
|
|||
w = x2 - x;
|
||||
h = y2 - y;
|
||||
|
||||
DPRINT("VGADDIFillSolid: x:%d, y:%d, w:%d, h:%d\n", x, y, w, h);
|
||||
|
||||
// Calculate the starting offset
|
||||
offset = xconv[x]+y80[y];
|
||||
|
||||
|
@ -50,12 +50,8 @@ BOOL VGADDIFillSolid(SURFOBJ *Surface, RECTL Dimensions, ULONG iColor)
|
|||
|
||||
// Calculate the left mask pixels, middle bytes and right mask pixel
|
||||
ileftpix = 7 - mod8(x-1);
|
||||
rightpix = mod8(x+w);
|
||||
midpix = (w-leftpix-rightpix) / 8;
|
||||
|
||||
ileftpix = leftpix;
|
||||
irightpix = rightpix;
|
||||
imidpix = midpix;
|
||||
irightpix = mod8(x+w);
|
||||
imidpix = (w-ileftpix-irightpix) / 8;
|
||||
|
||||
pre1 = xconv[(x-1)&~7] + y80[y];
|
||||
orgpre1=pre1;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* If not, write to the Free Software Foundation,
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id: videoprt.c,v 1.25 2004/06/26 22:30:34 navaraf Exp $
|
||||
* $Id: videoprt.c,v 1.26 2004/07/03 17:40:21 navaraf Exp $
|
||||
*/
|
||||
|
||||
#include "videoprt.h"
|
||||
|
@ -180,7 +180,7 @@ IntVideoPortFindAdapter(
|
|||
WCHAR SymlinkBuffer[20];
|
||||
UNICODE_STRING SymlinkName;
|
||||
PDEVICE_OBJECT DeviceObject;
|
||||
BOOL LegacyDetection;
|
||||
BOOL LegacyDetection = FALSE;
|
||||
|
||||
/*
|
||||
* Find the first free device number that can be used for video device
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: reg.c,v 1.49 2004/07/03 14:46:39 gvg Exp $
|
||||
/* $Id: reg.c,v 1.50 2004/07/03 17:40:21 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -865,7 +865,7 @@ RegEnumKeyExA (HKEY hKey,
|
|||
ANSI_STRING StringA;
|
||||
LONG ErrorCode = ERROR_SUCCESS;
|
||||
DWORD NameLength;
|
||||
DWORD ClassLength;
|
||||
DWORD ClassLength = 0;
|
||||
DWORD BufferSize;
|
||||
DWORD ResultSize;
|
||||
HANDLE KeyHandle;
|
||||
|
@ -1042,7 +1042,7 @@ RegEnumKeyExW (HKEY hKey,
|
|||
ULONG BufferSize;
|
||||
ULONG ResultSize;
|
||||
ULONG NameLength;
|
||||
ULONG ClassLength;
|
||||
ULONG ClassLength = 0;
|
||||
HANDLE KeyHandle;
|
||||
LONG ErrorCode = ERROR_SUCCESS;
|
||||
NTSTATUS Status;
|
||||
|
@ -1193,7 +1193,7 @@ RegEnumValueA (HKEY hKey,
|
|||
|
||||
ULONG NameLength;
|
||||
ULONG BufferSize;
|
||||
ULONG DataLength;
|
||||
ULONG DataLength = 0;
|
||||
ULONG ResultSize;
|
||||
HANDLE KeyHandle;
|
||||
LONG ErrorCode;
|
||||
|
@ -1360,7 +1360,7 @@ RegEnumValueW (HKEY hKey,
|
|||
|
||||
ULONG NameLength;
|
||||
ULONG BufferSize;
|
||||
ULONG DataLength;
|
||||
ULONG DataLength = 0;
|
||||
ULONG ResultSize;
|
||||
HANDLE KeyHandle;
|
||||
LONG ErrorCode;
|
||||
|
@ -1997,7 +1997,7 @@ RegQueryInfoKeyW (HKEY hKey,
|
|||
KEY_FULL_INFORMATION FullInfoBuffer;
|
||||
PKEY_FULL_INFORMATION FullInfo;
|
||||
ULONG FullInfoSize;
|
||||
ULONG ClassLength;
|
||||
ULONG ClassLength = 0;
|
||||
HANDLE KeyHandle;
|
||||
NTSTATUS Status;
|
||||
LONG ErrorCode = ERROR_SUCCESS;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: scm.c,v 1.21 2004/04/12 17:20:47 navaraf Exp $
|
||||
/* $Id: scm.c,v 1.22 2004/07/03 17:40:21 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -82,11 +82,9 @@ BOOL
|
|||
STDCALL
|
||||
CloseServiceHandle(SC_HANDLE hSCObject)
|
||||
{
|
||||
HANDLE hPipe;
|
||||
DPRINT("CloseServiceHandle() - called.\n");
|
||||
// SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
|
||||
if (!CloseHandle(hPipe)) {
|
||||
if (!CloseHandle(hSCObject)) {
|
||||
SetLastError(ERROR_INVALID_HANDLE);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: environment.c,v 1.1 2004/07/02 20:28:00 ekohl Exp $
|
||||
/* $Id: environment.c,v 1.2 2004/07/03 17:40:22 navaraf Exp $
|
||||
*
|
||||
* PROJECT: ReactOS System Control Panel
|
||||
* FILE: lib/cpl/sysdm/environment.c
|
||||
|
@ -45,7 +45,7 @@ SetEnvironmentVariables(HWND hwndListView,
|
|||
DWORD i;
|
||||
LPTSTR lpName;
|
||||
LPTSTR lpData;
|
||||
LPTSTR lpExpandData;
|
||||
LPTSTR lpExpandData = NULL;
|
||||
DWORD dwNameLength;
|
||||
DWORD dwDataLength;
|
||||
DWORD dwType;
|
||||
|
|
|
@ -20,8 +20,8 @@ FILE *_popen (const char *cm, const char *md) /* program name, pipe mode */
|
|||
|
||||
// fixme CreatePipe
|
||||
|
||||
// if ( !CreatePipe(&hReadPipe,&hWritePipe,NULL,1024))
|
||||
// return NULL;
|
||||
if ( !CreatePipe(&hReadPipe,&hWritePipe,NULL,1024))
|
||||
return NULL;
|
||||
|
||||
StartupInfo.cb = sizeof(StartupInfo);
|
||||
if ( md == "r" ) {
|
||||
|
|
|
@ -199,7 +199,7 @@ Fat12WriteRootDirectory (IN HANDLE FileHandle,
|
|||
IN OUT PFORMAT_CONTEXT Context)
|
||||
{
|
||||
IO_STATUS_BLOCK IoStatusBlock;
|
||||
NTSTATUS Status;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
PUCHAR Buffer;
|
||||
LARGE_INTEGER FileOffset;
|
||||
ULONG FirstRootDirSector;
|
||||
|
|
|
@ -201,7 +201,7 @@ Fat16WriteRootDirectory (IN HANDLE FileHandle,
|
|||
IN OUT PFORMAT_CONTEXT Context)
|
||||
{
|
||||
IO_STATUS_BLOCK IoStatusBlock;
|
||||
NTSTATUS Status;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
PUCHAR Buffer;
|
||||
LARGE_INTEGER FileOffset;
|
||||
ULONG FirstRootDirSector;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: font.c,v 1.4 2004/04/25 14:46:54 weiden Exp $
|
||||
/* $Id: font.c,v 1.5 2004/07/03 17:40:22 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -206,7 +206,7 @@ IntEnumFontFamilies(HDC Dc, LPLOGFONTW LogFont, PVOID EnumProc, LPARAM lParam,
|
|||
int FontFamilyCount;
|
||||
unsigned FontFamilySize;
|
||||
PFONTFAMILYINFO Info;
|
||||
int Ret;
|
||||
int Ret = 0;
|
||||
unsigned i;
|
||||
ENUMLOGFONTEXA EnumLogFontExA;
|
||||
NEWTEXTMETRICEXA NewTextMetricExA;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#define _WIN32_WINNT 0x0501
|
||||
#define __USE_W32API
|
||||
#define NTOS_MODE_USER
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ntos.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: global.c,v 1.25 2004/06/13 20:04:55 navaraf Exp $
|
||||
/* $Id: global.c,v 1.26 2004/07/03 17:40:22 navaraf Exp $
|
||||
*
|
||||
* Win32 Global/Local heap functions (GlobalXXX, LocalXXX).
|
||||
* These functions included in Win32 for compatibility with 16 bit Windows
|
||||
|
@ -671,7 +671,7 @@ GlobalUnlock(HGLOBAL hMem)
|
|||
{
|
||||
|
||||
PGLOBAL_HANDLE phandle;
|
||||
BOOL locked;
|
||||
BOOL locked = FALSE;
|
||||
|
||||
DPRINT("GlobalUnlock( 0x%lX )\n", (ULONG)hMem);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: lzexpand_main.c,v 1.2 2004/01/23 21:16:03 ekohl Exp $
|
||||
/* $Id: lzexpand_main.c,v 1.3 2004/07/03 17:40:22 navaraf Exp $
|
||||
*
|
||||
* LZ Decompression functions
|
||||
*
|
||||
|
@ -27,6 +27,7 @@
|
|||
#define NDEBUG
|
||||
#include "../include/debug.h"
|
||||
#include <string.h>
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.85 2004/05/15 20:25:09 hbirr Exp $
|
||||
/* $Id: create.c,v 1.86 2004/07/03 17:40:22 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -829,7 +829,7 @@ CreateProcessW
|
|||
UNICODE_STRING RuntimeInfo_U;
|
||||
PVOID ImageBaseAddress;
|
||||
BOOL InputSet, OutputSet, ErrorSet;
|
||||
BOOL InputDup, OutputDup, ErrorDup;
|
||||
BOOL InputDup = FALSE, OutputDup = FALSE, ErrorDup = FALSE;
|
||||
WCHAR Name[MAX_PATH];
|
||||
WCHAR *TidyCmdLine;
|
||||
BOOL IsBatchFile = FALSE;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: utils.c,v 1.96 2004/06/27 12:20:33 ekohl Exp $
|
||||
/* $Id: utils.c,v 1.97 2004/07/03 17:40:22 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -1629,7 +1629,7 @@ LdrFixupImports(IN PWSTR SearchPath OPTIONAL,
|
|||
PIMAGE_BOUND_IMPORT_DESCRIPTOR BoundImportDescriptor;
|
||||
PIMAGE_BOUND_IMPORT_DESCRIPTOR BoundImportDescriptorCurrent;
|
||||
PIMAGE_TLS_DIRECTORY TlsDirectory;
|
||||
ULONG TlsSize;
|
||||
ULONG TlsSize = 0;
|
||||
NTSTATUS Status;
|
||||
PLDR_MODULE ImportedModule;
|
||||
PCHAR ImportedName;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: makefile,v 1.104 2004/07/01 02:40:22 hyperion Exp $
|
||||
# $Id: makefile,v 1.105 2004/07/03 17:40:23 navaraf Exp $
|
||||
|
||||
PATH_TO_TOP = ../..
|
||||
|
||||
|
@ -19,7 +19,7 @@ TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
|
|||
-Wl,--section-alignment,0x1000 \
|
||||
-nostartfiles -nostdlib
|
||||
|
||||
TARGET_SDKLIBS = string.a rosrtl.a rtl.a
|
||||
TARGET_SDKLIBS = rosrtl.a rtl.a string.a
|
||||
|
||||
TARGET_GCCLIBS = gcc
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: message.c,v 1.5 2002/09/08 10:23:06 chorns Exp $
|
||||
/* $Id: message.c,v 1.6 2004/07/03 17:40:23 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -30,7 +30,7 @@ RtlFindMessage(PVOID BaseAddress,
|
|||
PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry;
|
||||
PRTL_MESSAGE_RESOURCE_DATA MessageTable;
|
||||
NTSTATUS Status;
|
||||
ULONG EntryOffset, IdOffset;
|
||||
ULONG EntryOffset, IdOffset = 0;
|
||||
PRTL_MESSAGE_RESOURCE_ENTRY MessageEntry;
|
||||
ULONG i;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sprintf.c,v 1.15 2004/06/15 08:53:53 hbirr Exp $
|
||||
/* $Id: sprintf.c,v 1.16 2004/07/03 17:40:23 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -23,6 +23,7 @@
|
|||
#include <ddk/ntddk.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: atoi64.c,v 1.4 2003/07/11 13:50:23 royce Exp $
|
||||
/* $Id: atoi64.c,v 1.5 2004/07/03 17:40:23 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <limits.h>
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <limits.h>
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -1289,7 +1289,7 @@ BOOLEAN PacketGetStatsEx(LPADAPTER AdapterObject,struct bpf_stat *s)
|
|||
BOOLEAN PacketRequest(LPADAPTER AdapterObject,BOOLEAN Set,PPACKET_OID_DATA OidData)
|
||||
{
|
||||
//DWORD BytesReturned;
|
||||
BOOLEAN Result;
|
||||
BOOLEAN Result = 0;
|
||||
/*commented out since its broken & needs fixing*/
|
||||
/*Result=DeviceIoControl(AdapterObject->hFile,(DWORD) Set ? pBIOCSETOID : pBIOCQUERYOID,
|
||||
OidData,sizeof(PACKET_OID_DATA)-1+OidData->Length,OidData,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: env.c,v 1.1 2004/05/31 19:29:02 gdalsnes Exp $
|
||||
/* $Id: env.c,v 1.2 2004/07/03 17:40:23 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -19,8 +19,6 @@
|
|||
#define NDEBUG
|
||||
#include <ntdll/ntdll.h>
|
||||
|
||||
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
/*
|
||||
|
|
|
@ -7,7 +7,7 @@ TARGET_NAME = rtl
|
|||
|
||||
include $(PATH_TO_TOP)/config
|
||||
|
||||
TARGET_CFLAGS = -Wall -Werror
|
||||
TARGET_CFLAGS = -Wall -Werror -ffreestanding
|
||||
|
||||
# require os code to explicitly request A/W version of structs/functions
|
||||
TARGET_CFLAGS += -D_DISABLE_TIDENTS
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <ntdll/rtl.h>
|
||||
|
||||
#include <ntos/minmax.h>
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
|
||||
#define NDEBUG
|
||||
|
|
|
@ -342,6 +342,9 @@ IntDrawScrollBar(HWND Wnd, HDC DC, INT Bar)
|
|||
case SB_CTL:
|
||||
Vertical = (GetWindowLongW(Wnd, GWL_STYLE) & SBS_VERT) != 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
if (! IntGetScrollBarInfo(Wnd, Bar, &Info))
|
||||
{
|
||||
|
|
|
@ -54,11 +54,9 @@ CleanupThread(VOID)
|
|||
TlsSetValue(User32TlsIndex, 0);
|
||||
}
|
||||
|
||||
DWORD
|
||||
VOID
|
||||
Init(VOID)
|
||||
{
|
||||
DWORD Status;
|
||||
|
||||
/* Set up the kernel callbacks. */
|
||||
NtCurrentTeb()->Peb->KernelCallbackTable[USER32_CALLBACK_WINDOWPROC] =
|
||||
(PVOID)User32CallWindowProcFromKernel;
|
||||
|
@ -81,20 +79,14 @@ Init(VOID)
|
|||
InitializeCriticalSection(&gcsMPH);
|
||||
|
||||
GdiDllInitialize(NULL, DLL_PROCESS_ATTACH, NULL);
|
||||
|
||||
return(Status);
|
||||
}
|
||||
|
||||
DWORD
|
||||
VOID
|
||||
Cleanup(VOID)
|
||||
{
|
||||
DWORD Status;
|
||||
|
||||
GdiDllInitialize(NULL, DLL_PROCESS_DETACH, NULL);
|
||||
|
||||
TlsFree(User32TlsIndex);
|
||||
|
||||
return(Status);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: class.c,v 1.49 2004/05/17 16:38:57 navaraf Exp $
|
||||
/* $Id: class.c,v 1.50 2004/07/03 17:40:23 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -587,8 +587,9 @@ SetClassLongA (
|
|||
int nIndex,
|
||||
LONG dwNewLong)
|
||||
{
|
||||
UNICODE_STRING str2buf;
|
||||
PUNICODE_STRING str;
|
||||
PUNICODE_STRING str2;
|
||||
PUNICODE_STRING str2 = &str2buf;
|
||||
|
||||
if ( nIndex != GCL_MENUNAME )
|
||||
{
|
||||
|
@ -600,7 +601,7 @@ SetClassLongA (
|
|||
}
|
||||
else
|
||||
{
|
||||
RtlCreateUnicodeString ( str2, (LPWSTR)dwNewLong );
|
||||
RtlCreateUnicodeStringFromAsciiz ( &str2buf,(LPSTR)dwNewLong );
|
||||
}
|
||||
|
||||
str = (PUNICODE_STRING)NtUserSetClassLong(hWnd, nIndex, (DWORD)str2, TRUE);
|
||||
|
@ -630,8 +631,9 @@ SetClassLongW(
|
|||
int nIndex,
|
||||
LONG dwNewLong)
|
||||
{
|
||||
UNICODE_STRING str2buf;
|
||||
PUNICODE_STRING str;
|
||||
PUNICODE_STRING str2;
|
||||
PUNICODE_STRING str2 = &str2buf;
|
||||
|
||||
if (nIndex != GCL_MENUNAME )
|
||||
{
|
||||
|
@ -643,7 +645,7 @@ SetClassLongW(
|
|||
}
|
||||
else
|
||||
{
|
||||
RtlCreateUnicodeStringFromAsciiz ( str2,(LPSTR)dwNewLong );
|
||||
RtlCreateUnicodeString ( &str2buf, (LPWSTR)dwNewLong );
|
||||
}
|
||||
|
||||
str = (PUNICODE_STRING)NtUserSetClassLong(hWnd, nIndex, (DWORD)str2, TRUE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: defwnd.c,v 1.140 2004/05/26 18:59:21 weiden Exp $
|
||||
/* $Id: defwnd.c,v 1.141 2004/07/03 17:40:23 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -496,7 +496,7 @@ DefWndDoSizeMove(HWND hwnd, WORD wParam)
|
|||
BOOL moved = FALSE;
|
||||
DWORD dwPoint = GetMessagePos();
|
||||
BOOL DragFullWindows = FALSE;
|
||||
HWND hWndParent;
|
||||
HWND hWndParent = NULL;
|
||||
|
||||
SystemParametersInfoA(SPI_GETDRAGFULLWINDOWS, 0, &DragFullWindows, 0);
|
||||
|
||||
|
|
|
@ -1316,7 +1316,7 @@ static void MDI_UpdateFrameText( HWND frame, HWND hClient,
|
|||
static LRESULT MDIClientWndProc_common( HWND hwnd, UINT message,
|
||||
WPARAM wParam, LPARAM lParam, BOOL unicode )
|
||||
{
|
||||
MDICLIENTINFO *ci;
|
||||
MDICLIENTINFO *ci = NULL;
|
||||
|
||||
if (WM_NCCREATE != message && WM_CREATE != message
|
||||
&& NULL == (ci = get_client_info(hwnd)))
|
||||
|
|
|
@ -900,7 +900,7 @@ DefWndDoButton(HWND hWnd, WPARAM wParam)
|
|||
BOOL InBtn, HasBtn = FALSE;
|
||||
ULONG Btn, Style;
|
||||
WPARAM SCMsg, CurBtn = wParam, OrigBtn = wParam;
|
||||
HDC WindowDC;
|
||||
HDC WindowDC = NULL;
|
||||
|
||||
Style = GetWindowLongW(hWnd, GWL_STYLE);
|
||||
switch(wParam)
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
* REVISIONS:
|
||||
* CSH 01/09-2000 Created
|
||||
*/
|
||||
#define __NO_CTYPE_INLINES
|
||||
#include <ctype.h>
|
||||
#include <ws2_32.h>
|
||||
|
||||
|
|
|
@ -377,7 +377,7 @@ WSADuplicateSocketW(
|
|||
Error = Provider->ProcTable.lpWSPDuplicateSocket(s,
|
||||
dwProcessId,
|
||||
lpProtocolInfo,
|
||||
&Error);
|
||||
&Errno);
|
||||
DereferenceProviderByPointer(Provider);
|
||||
|
||||
if (Error == SOCKET_ERROR)
|
||||
|
@ -434,7 +434,6 @@ WSAGetOverlappedResult(
|
|||
OUT LPDWORD lpdwFlags)
|
||||
{
|
||||
INT Errno;
|
||||
int Error;
|
||||
BOOL Success;
|
||||
PCATALOG_ENTRY Provider;
|
||||
|
||||
|
@ -455,7 +454,7 @@ WSAGetOverlappedResult(
|
|||
lpcbTransfer,
|
||||
fWait,
|
||||
lpdwFlags,
|
||||
&Error);
|
||||
&Errno);
|
||||
DereferenceProviderByPointer(Provider);
|
||||
|
||||
if (Success == FALSE)
|
||||
|
|
|
@ -109,11 +109,11 @@ IoGetDeviceInterfaces(
|
|||
HANDLE SubKey;
|
||||
HANDLE SymbolicLinkKey;
|
||||
PKEY_FULL_INFORMATION fip;
|
||||
PKEY_FULL_INFORMATION bfip;
|
||||
PKEY_FULL_INFORMATION bfip = NULL;
|
||||
PKEY_BASIC_INFORMATION bip;
|
||||
PKEY_VALUE_PARTIAL_INFORMATION vpip;
|
||||
PKEY_VALUE_PARTIAL_INFORMATION vpip = NULL;
|
||||
PWCHAR SymLinkList = NULL;
|
||||
ULONG SymLinkListSize;
|
||||
ULONG SymLinkListSize = 0;
|
||||
NTSTATUS Status;
|
||||
ULONG Size = 0;
|
||||
ULONG i = 0;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: resource.c,v 1.16 2004/06/20 04:50:02 vizzini Exp $
|
||||
/* $Id: resource.c,v 1.17 2004/07/03 17:40:24 navaraf Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/io/resource.c
|
||||
|
@ -125,7 +125,7 @@ IopQueryDeviceDescription(
|
|||
ULONG Bus,
|
||||
PKEY_VALUE_FULL_INFORMATION *BusInformation)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
/* Controller Stuff */
|
||||
UNICODE_STRING ControllerString;
|
||||
|
@ -481,13 +481,13 @@ IopQueryBusDescription(
|
|||
UNICODE_STRING SubRootRegName;
|
||||
UNICODE_STRING BusString;
|
||||
UNICODE_STRING SubBusString;
|
||||
ULONG LenBasicInformation;
|
||||
ULONG LenBasicInformation = 0;
|
||||
ULONG LenFullInformation;
|
||||
ULONG LenKeyFullInformation;
|
||||
ULONG LenKey;
|
||||
HANDLE SubRootKeyHandle;
|
||||
PKEY_FULL_INFORMATION FullInformation;
|
||||
PKEY_BASIC_INFORMATION BasicInformation;
|
||||
PKEY_BASIC_INFORMATION BasicInformation = NULL;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
PKEY_VALUE_FULL_INFORMATION BusInformation[3] = {NULL, NULL, NULL};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: dir.c,v 1.9 2004/04/30 16:52:41 navaraf Exp $
|
||||
/* $Id: dir.c,v 1.10 2004/07/03 17:40:24 navaraf Exp $
|
||||
*
|
||||
* DIR.C - dir internal command.
|
||||
*
|
||||
|
@ -862,7 +862,7 @@ DirList (LPTSTR szPath, LPTSTR szFilespec, LPINT pLine, DWORD dwFlags)
|
|||
TCHAR buffer[32];
|
||||
ULONG filecount = 0;
|
||||
ULONG dircount = 0;
|
||||
INT count;
|
||||
INT count = 0;
|
||||
USHORT screenwidth;
|
||||
INT longestfname = 0;
|
||||
|
||||
|
|
|
@ -265,7 +265,7 @@ BOOLEAN LoadFMIFSEntryPoints()
|
|||
int wmain( int argc, WCHAR *argv[] )
|
||||
{
|
||||
int badArg;
|
||||
DWORD media;
|
||||
DWORD media = FMIFS_HARDDISK;
|
||||
DWORD driveType;
|
||||
WCHAR fileSystem[1024];
|
||||
WCHAR volumeName[1024];
|
||||
|
@ -326,10 +326,6 @@ int wmain( int argc, WCHAR *argv[] )
|
|||
fgetws( input, sizeof(input)/2, stdin );
|
||||
|
||||
media = FMIFS_FLOPPY;
|
||||
|
||||
|
||||
driveType = DRIVE_FIXED;
|
||||
media = FMIFS_HARDDISK;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: database.c,v 1.16 2004/04/12 17:20:47 navaraf Exp $
|
||||
/* $Id: database.c,v 1.17 2004/07/03 17:40:24 navaraf Exp $
|
||||
*
|
||||
* service control manager
|
||||
*
|
||||
|
@ -680,7 +680,7 @@ ScmAutoStartServices(VOID)
|
|||
{
|
||||
CurrentService = CONTAINING_RECORD(ServiceEntry, SERVICE, ServiceListEntry);
|
||||
|
||||
if ((CurrentGroup->GroupName.Length > 0) &&
|
||||
if ((CurrentService->ServiceGroup.Length == 0) &&
|
||||
(CurrentService->Start == SERVICE_AUTO_START) &&
|
||||
(CurrentService->ServiceVisited == FALSE))
|
||||
{
|
||||
|
@ -698,7 +698,7 @@ ScmAutoStartServices(VOID)
|
|||
{
|
||||
CurrentService = CONTAINING_RECORD(ServiceEntry, SERVICE, ServiceListEntry);
|
||||
|
||||
if ((CurrentGroup->GroupName.Length == 0) &&
|
||||
if ((CurrentService->ServiceGroup.Length == 0) &&
|
||||
(CurrentService->Start == SERVICE_AUTO_START) &&
|
||||
(CurrentService->ServiceVisited == FALSE))
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: winlogon.c,v 1.30 2004/05/25 15:53:16 navaraf Exp $
|
||||
/* $Id: winlogon.c,v 1.31 2004/07/03 17:40:24 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -805,7 +805,7 @@ DoLogin(PWLSESSION Session)
|
|||
DWORD WlxAction, Options;
|
||||
WLX_MPR_NOTIFY_INFO MprNotifyInfo;
|
||||
PWLX_PROFILE_V2_0 Profile;
|
||||
PSID LogonSid;
|
||||
PSID LogonSid = NULL;
|
||||
HANDLE Token;
|
||||
|
||||
/* FIXME - Create a Logon Sid
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dib16bpp.c,v 1.33 2004/07/03 13:55:35 navaraf Exp $ */
|
||||
/* $Id: dib16bpp.c,v 1.34 2004/07/03 17:40:24 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
VOID
|
||||
|
@ -270,16 +270,16 @@ DIB_16BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
{
|
||||
ULONG X, Y;
|
||||
ULONG SourceX, SourceY;
|
||||
ULONG wd, Dest, Source, Pattern = 0, PatternY;
|
||||
ULONG wd, Dest, Source = 0, Pattern = 0;
|
||||
PULONG DestBits;
|
||||
BOOL UsesSource;
|
||||
BOOL UsesPattern;
|
||||
ULONG RoundedRight;
|
||||
/* Pattern brushes */
|
||||
PGDIBRUSHOBJ GdiBrush;
|
||||
PGDIBRUSHOBJ GdiBrush = NULL;
|
||||
HBITMAP PatternSurface = NULL;
|
||||
SURFOBJ *PatternObj;
|
||||
ULONG PatternWidth, PatternHeight;
|
||||
SURFOBJ *PatternObj = NULL;
|
||||
ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;
|
||||
|
||||
if (Rop4 == SRCCOPY)
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dib1bpp.c,v 1.30 2004/07/03 13:55:35 navaraf Exp $ */
|
||||
/* $Id: dib1bpp.c,v 1.31 2004/07/03 17:40:24 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
VOID
|
||||
|
@ -346,17 +346,17 @@ DIB_1BPP_BitBlt(
|
|||
XLATEOBJ *ColorTranslation, ULONG Rop4)
|
||||
{
|
||||
ULONG X, Y, SourceX, SourceY, k;
|
||||
ULONG Dest, Source, Pattern = 0;
|
||||
ULONG Dest, Source = 0, Pattern = 0;
|
||||
PULONG DestBits;
|
||||
BOOL UsesSource;
|
||||
BOOL UsesPattern;
|
||||
ULONG RoundedRight;
|
||||
BYTE NoBits;
|
||||
/* Pattern brushes */
|
||||
PGDIBRUSHOBJ GdiBrush;
|
||||
PGDIBRUSHOBJ GdiBrush = NULL;
|
||||
HBITMAP PatternSurface = NULL;
|
||||
SURFOBJ *PatternObj;
|
||||
ULONG PatternWidth, PatternHeight;
|
||||
SURFOBJ *PatternObj = NULL;
|
||||
ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;
|
||||
|
||||
if (Rop4 == SRCCOPY)
|
||||
{
|
||||
|
@ -403,8 +403,6 @@ DIB_1BPP_BitBlt(
|
|||
|
||||
for (Y = DestRect->top; Y < DestRect->bottom; Y++)
|
||||
{
|
||||
ULONG PatternY;
|
||||
|
||||
SourceX = SourcePoint->x;
|
||||
DestBits = (PULONG)(
|
||||
DestSurf->pvScan0 +
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dib24bpp.c,v 1.29 2004/07/03 13:55:35 navaraf Exp $ */
|
||||
/* $Id: dib24bpp.c,v 1.30 2004/07/03 17:40:24 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
VOID
|
||||
|
@ -243,15 +243,15 @@ DIB_24BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
{
|
||||
ULONG X, Y;
|
||||
ULONG SourceX, SourceY;
|
||||
ULONG Dest, Source, Pattern = 0, PatternY;
|
||||
ULONG Dest, Source = 0, Pattern = 0;
|
||||
PBYTE DestBits;
|
||||
BOOL UsesSource;
|
||||
BOOL UsesPattern;
|
||||
/* Pattern brushes */
|
||||
PGDIBRUSHOBJ GdiBrush;
|
||||
PGDIBRUSHOBJ GdiBrush = NULL;
|
||||
HBITMAP PatternSurface = NULL;
|
||||
SURFOBJ *PatternObj;
|
||||
ULONG PatternWidth, PatternHeight;
|
||||
SURFOBJ *PatternObj = NULL;
|
||||
ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;
|
||||
|
||||
if (Rop4 == SRCCOPY)
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dib32bpp.c,v 1.28 2004/07/03 13:55:35 navaraf Exp $ */
|
||||
/* $Id: dib32bpp.c,v 1.29 2004/07/03 17:40:24 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
VOID
|
||||
|
@ -292,15 +292,15 @@ DIB_32BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
{
|
||||
ULONG X, Y;
|
||||
ULONG SourceX, SourceY;
|
||||
ULONG Dest, Source, Pattern = 0, wd;
|
||||
ULONG Dest, Source = 0, Pattern = 0, wd;
|
||||
PULONG DestBits;
|
||||
BOOL UsesSource;
|
||||
BOOL UsesPattern;
|
||||
/* Pattern brushes */
|
||||
PGDIBRUSHOBJ GdiBrush;
|
||||
PGDIBRUSHOBJ GdiBrush = NULL;
|
||||
HBITMAP PatternSurface = NULL;
|
||||
SURFOBJ *PatternObj;
|
||||
ULONG PatternWidth, PatternHeight;
|
||||
SURFOBJ *PatternObj = NULL;
|
||||
ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;
|
||||
|
||||
if (Rop4 == SRCCOPY)
|
||||
{
|
||||
|
@ -351,7 +351,6 @@ DIB_32BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
|
||||
for (Y = DestRect->top; Y < DestRect->bottom; Y++)
|
||||
{
|
||||
ULONG PatternY;
|
||||
SourceX = SourcePoint->x;
|
||||
|
||||
if(UsesPattern)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dib4bpp.c,v 1.36 2004/07/03 13:55:35 navaraf Exp $ */
|
||||
/* $Id: dib4bpp.c,v 1.37 2004/07/03 17:40:24 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
VOID
|
||||
|
@ -227,16 +227,16 @@ DIB_4BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
XLATEOBJ *ColorTranslation, ULONG Rop4)
|
||||
{
|
||||
LONG i, j, sx, sy;
|
||||
ULONG Dest, Source, Pattern = 0, PatternY;
|
||||
ULONG Dest, Source = 0, Pattern = 0;
|
||||
PULONG DestBits;
|
||||
BOOL UsesSource;
|
||||
BOOL UsesPattern;
|
||||
LONG RoundedRight;
|
||||
/* Pattern brushes */
|
||||
PGDIBRUSHOBJ GdiBrush;
|
||||
PGDIBRUSHOBJ GdiBrush = NULL;
|
||||
HBITMAP PatternSurface = NULL;
|
||||
SURFOBJ *PatternObj;
|
||||
ULONG PatternWidth, PatternHeight;
|
||||
SURFOBJ *PatternObj = NULL;
|
||||
ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;
|
||||
static const ULONG ExpandSolidColor[16] =
|
||||
{
|
||||
0x00000000 /* 0 */,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dib8bpp.c,v 1.27 2004/07/03 13:55:35 navaraf Exp $ */
|
||||
/* $Id: dib8bpp.c,v 1.28 2004/07/03 17:40:24 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
VOID
|
||||
|
@ -265,16 +265,16 @@ DIB_8BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
XLATEOBJ *ColorTranslation, ULONG Rop4)
|
||||
{
|
||||
LONG i, j, k, sx, sy;
|
||||
ULONG Dest, Source, Pattern = 0, PatternY;
|
||||
ULONG Dest, Source = 0, Pattern = 0;
|
||||
PULONG DestBits;
|
||||
BOOL UsesSource;
|
||||
BOOL UsesPattern;
|
||||
LONG RoundedRight;
|
||||
/* Pattern brushes */
|
||||
PGDIBRUSHOBJ GdiBrush;
|
||||
PGDIBRUSHOBJ GdiBrush = NULL;
|
||||
HBITMAP PatternSurface = NULL;
|
||||
SURFOBJ *PatternObj;
|
||||
ULONG PatternWidth, PatternHeight;
|
||||
SURFOBJ *PatternObj = NULL;
|
||||
ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;
|
||||
|
||||
if (Rop4 == SRCCOPY)
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: bitblt.c,v 1.56 2004/07/03 13:55:35 navaraf Exp $
|
||||
/* $Id: bitblt.c,v 1.57 2004/07/03 17:40:25 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -88,10 +88,10 @@ BltMask(SURFOBJ* Dest,
|
|||
BYTE *tMask, *lMask;
|
||||
static BYTE maskbit[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
|
||||
/* Pattern brushes */
|
||||
PGDIBRUSHOBJ GdiBrush;
|
||||
PGDIBRUSHOBJ GdiBrush = NULL;
|
||||
HBITMAP PatternSurface = NULL;
|
||||
SURFOBJ *PatternObj;
|
||||
ULONG PatternWidth, PatternHeight, PatternY;
|
||||
SURFOBJ *PatternObj = NULL;
|
||||
ULONG PatternWidth = 0, PatternHeight = 0, PatternY = 0;
|
||||
|
||||
if (Mask == NULL)
|
||||
{
|
||||
|
@ -243,7 +243,7 @@ EngBitBlt(SURFOBJ *DestObj,
|
|||
SURFOBJ* InputObj;
|
||||
SURFOBJ* OutputObj;
|
||||
PBLTRECTFUNC BltRectFunc;
|
||||
BOOLEAN Ret;
|
||||
BOOLEAN Ret = TRUE;
|
||||
RECTL ClipRect;
|
||||
unsigned i;
|
||||
POINTL Pt;
|
||||
|
@ -846,7 +846,7 @@ EngMaskBitBlt(SURFOBJ *DestObj,
|
|||
INTENG_ENTER_LEAVE EnterLeaveDest;
|
||||
SURFOBJ* InputObj;
|
||||
SURFOBJ* OutputObj;
|
||||
BOOLEAN Ret;
|
||||
BOOLEAN Ret = TRUE;
|
||||
RECTL ClipRect;
|
||||
unsigned i;
|
||||
POINTL Pt;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: misc.c,v 1.8 2004/07/03 13:55:35 navaraf Exp $ */
|
||||
/* $Id: misc.c,v 1.9 2004/07/03 17:40:25 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
BOOL STDCALL
|
||||
|
@ -134,7 +134,7 @@ BOOL STDCALL
|
|||
IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave)
|
||||
{
|
||||
POINTL SrcPoint;
|
||||
BOOL Result;
|
||||
BOOL Result = TRUE;
|
||||
|
||||
if (EnterLeave->OutputObj != EnterLeave->DestObj && NULL != EnterLeave->OutputObj)
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: mouse.c,v 1.74 2004/07/03 13:55:35 navaraf Exp $
|
||||
/* $Id: mouse.c,v 1.75 2004/07/03 17:40:25 navaraf Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* PURPOSE: Mouse
|
||||
|
@ -630,6 +630,7 @@ EngSetPointerShape(
|
|||
case BMF_16BPP: lDelta = Size.cx << 1; break;
|
||||
case BMF_24BPP: lDelta = Size.cx * 3; break;
|
||||
case BMF_32BPP: lDelta = Size.cx << 2; break;
|
||||
default: lDelta = 0; break;
|
||||
}
|
||||
|
||||
ppdev->PointerSaveSurface = (HSURF)EngCreateBitmap(
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: transblt.c,v 1.20 2004/07/03 13:55:35 navaraf Exp $
|
||||
/* $Id: transblt.c,v 1.21 2004/07/03 17:40:25 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -39,7 +39,7 @@ EngTransparentBlt(SURFOBJ *Dest,
|
|||
ULONG iTransColor,
|
||||
ULONG Reserved)
|
||||
{
|
||||
BOOL Ret;
|
||||
BOOL Ret = TRUE;
|
||||
BYTE ClippingType;
|
||||
INTENG_ENTER_LEAVE EnterLeaveSource, EnterLeaveDest;
|
||||
SURFOBJ *InputObj, *OutputObj;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: message.c,v 1.70 2004/06/16 06:09:40 gvg Exp $
|
||||
/* $Id: message.c,v 1.71 2004/07/03 17:40:25 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -287,7 +287,7 @@ NtUserDispatchMessage(PNTUSERDISPATCHMESSAGEINFO UnsafeMsgInfo)
|
|||
NTSTATUS Status;
|
||||
NTUSERDISPATCHMESSAGEINFO MsgInfo;
|
||||
PWINDOW_OBJECT WindowObject;
|
||||
LRESULT Result;
|
||||
LRESULT Result = TRUE;
|
||||
|
||||
Status = MmCopyFromCaller(&MsgInfo, UnsafeMsgInfo, sizeof(NTUSERDISPATCHMESSAGEINFO));
|
||||
if (! NT_SUCCESS(Status))
|
||||
|
@ -1397,7 +1397,7 @@ IntDoSendMessage(HWND Wnd,
|
|||
PDOSENDMESSAGE dsm,
|
||||
PNTUSERSENDMESSAGEINFO UnsafeInfo)
|
||||
{
|
||||
LRESULT Result;
|
||||
LRESULT Result = TRUE;
|
||||
NTSTATUS Status;
|
||||
PWINDOW_OBJECT Window;
|
||||
NTUSERSENDMESSAGEINFO Info;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: scrollbar.c,v 1.33 2004/05/12 09:47:16 gvg Exp $
|
||||
/* $Id: scrollbar.c,v 1.34 2004/07/03 17:40:25 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -805,6 +805,7 @@ NtUserShowScrollBar(HWND hWnd, int wBar, DWORD bShow)
|
|||
Style = WS_HSCROLL | WS_VSCROLL;
|
||||
break;
|
||||
case SB_CTL:
|
||||
Style = 0;
|
||||
break;
|
||||
default:
|
||||
IntReleaseWindowObject(Window);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: window.c,v 1.241 2004/06/22 12:43:49 royce Exp $
|
||||
/* $Id: window.c,v 1.242 2004/07/03 17:40:25 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -456,7 +456,7 @@ IntSetMenu(
|
|||
HMENU Menu,
|
||||
BOOL *Changed)
|
||||
{
|
||||
PMENU_OBJECT OldMenuObject, NewMenuObject;
|
||||
PMENU_OBJECT OldMenuObject, NewMenuObject = NULL;
|
||||
|
||||
*Changed = (WindowObject->IDMenu != (UINT) Menu);
|
||||
if (! *Changed)
|
||||
|
@ -3153,7 +3153,7 @@ LONG STDCALL
|
|||
NtUserGetWindowLong(HWND hWnd, DWORD Index, BOOL Ansi)
|
||||
{
|
||||
PWINDOW_OBJECT WindowObject, Parent;
|
||||
LONG Result;
|
||||
LONG Result = 0;
|
||||
|
||||
DPRINT("NtUserGetWindowLong(%x,%d,%d)\n", hWnd, (INT)Index, Ansi);
|
||||
|
||||
|
@ -4193,7 +4193,7 @@ DWORD
|
|||
IntAddWndProcHandle(WNDPROC WindowProc, BOOL IsUnicode)
|
||||
{
|
||||
WORD i;
|
||||
WORD FreeSpot;
|
||||
WORD FreeSpot = 0;
|
||||
BOOL found;
|
||||
WndProcHandle *OldArray;
|
||||
WORD OldArraySize;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: bitmaps.c,v 1.76 2004/07/03 13:55:36 navaraf Exp $ */
|
||||
/* $Id: bitmaps.c,v 1.77 2004/07/03 17:40:27 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
#define IN_RECT(r,x,y) \
|
||||
|
@ -47,7 +47,7 @@ NtGdiBitBlt(
|
|||
BOOL Status;
|
||||
PPALGDI PalDestGDI, PalSourceGDI;
|
||||
XLATEOBJ *XlateObj = NULL;
|
||||
HPALETTE SourcePalette, DestPalette;
|
||||
HPALETTE SourcePalette = 0, DestPalette = 0;
|
||||
ULONG SourceMode, DestMode;
|
||||
PGDIBRUSHOBJ BrushObj;
|
||||
BOOL UsesSource = ((ROP & 0xCC0000) >> 2) != (ROP & 0x330000);
|
||||
|
@ -266,11 +266,11 @@ NtGdiTransparentBlt(
|
|||
RECTL rcDest, rcSrc;
|
||||
BITMAPOBJ *BitmapDest, *BitmapSrc;
|
||||
XLATEOBJ *XlateObj;
|
||||
HPALETTE SourcePalette, DestPalette;
|
||||
HPALETTE SourcePalette = 0, DestPalette = 0;
|
||||
PPALGDI PalDestGDI, PalSourceGDI;
|
||||
USHORT PalDestMode, PalSrcMode;
|
||||
ULONG TransparentColor;
|
||||
BOOL Ret;
|
||||
ULONG TransparentColor = 0;
|
||||
BOOL Ret = FALSE;
|
||||
|
||||
if(!(DCDest = DC_LockDc(hdcDst)))
|
||||
{
|
||||
|
@ -582,7 +582,7 @@ NtGdiGetPixel(HDC hDC, INT XPos, INT YPos)
|
|||
BOOL bInRect = FALSE;
|
||||
BITMAPOBJ *BitmapObject;
|
||||
SURFOBJ *SurfaceObject;
|
||||
HPALETTE Pal;
|
||||
HPALETTE Pal = 0;
|
||||
PPALGDI PalGDI;
|
||||
USHORT PalMode;
|
||||
XLATEOBJ *XlateObj;
|
||||
|
@ -1046,7 +1046,7 @@ NtGdiStretchBlt(
|
|||
BOOL Status;
|
||||
PPALGDI PalDestGDI, PalSourceGDI;
|
||||
XLATEOBJ *XlateObj = NULL;
|
||||
HPALETTE SourcePalette, DestPalette;
|
||||
HPALETTE SourcePalette = 0, DestPalette = 0;
|
||||
ULONG SourceMode, DestMode;
|
||||
PGDIBRUSHOBJ BrushObj;
|
||||
BOOL UsesSource = ((ROP & 0xCC0000) >> 2) != (ROP & 0x330000);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: brush.c,v 1.38 2004/07/03 13:55:36 navaraf Exp $
|
||||
* $Id: brush.c,v 1.39 2004/07/03 17:40:27 navaraf Exp $
|
||||
*/
|
||||
#include <w32k.h>
|
||||
|
||||
|
@ -50,7 +50,7 @@ IntGdiCreateBrushIndirect(PLOGBRUSH LogBrush)
|
|||
{
|
||||
PGDIBRUSHOBJ BrushObject;
|
||||
HBRUSH hBrush;
|
||||
HBITMAP hPattern;
|
||||
HBITMAP hPattern = 0;
|
||||
|
||||
switch (LogBrush->lbStyle)
|
||||
{
|
||||
|
@ -129,7 +129,7 @@ IntPatBlt(
|
|||
RECTL DestRect;
|
||||
BITMAPOBJ *BitmapObj;
|
||||
POINTL BrushOrigin;
|
||||
BOOL ret;
|
||||
BOOL ret = TRUE;
|
||||
|
||||
BitmapObj = BITMAPOBJ_LockBitmap(dc->w.hBitmap);
|
||||
if (BitmapObj == NULL)
|
||||
|
@ -354,7 +354,7 @@ NtGdiPolyPatBlt(
|
|||
INT cRects,
|
||||
ULONG Reserved)
|
||||
{
|
||||
PPATRECT rb;
|
||||
PPATRECT rb = NULL;
|
||||
NTSTATUS Status;
|
||||
BOOL Ret;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: color.c,v 1.47 2004/07/03 13:55:36 navaraf Exp $ */
|
||||
/* $Id: color.c,v 1.48 2004/07/03 17:40:27 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
// FIXME: Use PXLATEOBJ logicalToSystem instead of int *mapping
|
||||
|
@ -440,7 +440,7 @@ HPALETTE STDCALL NtGdiSelectPalette(HDC hDC,
|
|||
BOOL ForceBackground)
|
||||
{
|
||||
PDC dc;
|
||||
HPALETTE oldPal;
|
||||
HPALETTE oldPal = NULL;
|
||||
PPALGDI PalGDI;
|
||||
|
||||
// FIXME: mark the palette as a [fore\back]ground pal
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: cursoricon.c,v 1.58 2004/07/03 13:55:36 navaraf Exp $ */
|
||||
/* $Id: cursoricon.c,v 1.59 2004/07/03 17:40:27 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
PCURICON_OBJECT FASTCALL
|
||||
|
@ -1077,7 +1077,7 @@ NtUserDrawIconEx(
|
|||
COLORREF oldFg, oldBg;
|
||||
HDC hdcMem, hdcOff = (HDC)0;
|
||||
HBITMAP hbmOff = (HBITMAP)0;
|
||||
HGDIOBJ hOldOffBrush, hOldOffBmp, hOldMem;
|
||||
HGDIOBJ hOldOffBrush = 0, hOldOffBmp = 0, hOldMem;
|
||||
BOOL Ret = FALSE;
|
||||
#if CANSTRETCHBLT
|
||||
INT nStretchMode;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dc.c,v 1.142 2004/07/03 13:55:36 navaraf Exp $
|
||||
/* $Id: dc.c,v 1.143 2004/07/03 17:40:27 navaraf Exp $
|
||||
*
|
||||
* DC.C - Device context functions
|
||||
*
|
||||
|
@ -940,6 +940,7 @@ NtGdiGetCurrentObject(HDC hDC, UINT ObjectType)
|
|||
break;
|
||||
case OBJ_PAL:
|
||||
DPRINT1("FIXME: NtGdiGetCurrentObject() ObjectType OBJ_PAL not supported yet!\n");
|
||||
SelObject = NULL;
|
||||
break;
|
||||
case OBJ_FONT:
|
||||
SelObject = dc->w.hFont;
|
||||
|
@ -949,6 +950,7 @@ NtGdiGetCurrentObject(HDC hDC, UINT ObjectType)
|
|||
break;
|
||||
case OBJ_COLORSPACE:
|
||||
DPRINT1("FIXME: NtGdiGetCurrentObject() ObjectType OBJ_COLORSPACE not supported yet!\n");
|
||||
SelObject = NULL;
|
||||
break;
|
||||
default:
|
||||
SelObject = NULL;
|
||||
|
@ -1742,7 +1744,7 @@ NtGdiSelectObject(HDC hDC, HGDIOBJ hGDIObj)
|
|||
PPALGDI PalGDI;
|
||||
DWORD objectType;
|
||||
COLORREF MonoColorMap[2];
|
||||
ULONG NumColors;
|
||||
ULONG NumColors = 0;
|
||||
HRGN hVisRgn;
|
||||
USHORT Mode;
|
||||
|
||||
|
@ -2187,7 +2189,7 @@ IntGetDCColor(HDC hDC, ULONG Object)
|
|||
PGDIBRUSHOBJ pen;
|
||||
PGDIBRUSHOBJ brush;
|
||||
XLATEOBJ *XlateObj;
|
||||
HPALETTE Pal;
|
||||
HPALETTE Pal = 0;
|
||||
USHORT Mode;
|
||||
ULONG iColor;
|
||||
|
||||
|
@ -2279,7 +2281,7 @@ IntSetDCColor(HDC hDC, ULONG Object, COLORREF Color)
|
|||
PGDIBRUSHOBJ pen;
|
||||
PGDIBRUSHOBJ brush;
|
||||
XLATEOBJ *XlateObj;
|
||||
HPALETTE Pal;
|
||||
HPALETTE Pal = 0;
|
||||
USHORT Mode;
|
||||
ULONG iColor;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: line.c,v 1.34 2004/07/03 13:55:37 navaraf Exp $ */
|
||||
/* $Id: line.c,v 1.35 2004/07/03 17:40:27 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
// Some code from the WINE project source (www.winehq.com)
|
||||
|
@ -52,7 +52,7 @@ IntGdiLineTo(DC *dc,
|
|||
int YEnd)
|
||||
{
|
||||
BITMAPOBJ *BitmapObj;
|
||||
BOOL Ret;
|
||||
BOOL Ret = TRUE;
|
||||
PGDIBRUSHOBJ PenBrushObj;
|
||||
RECTL Bounds;
|
||||
POINT Points[2];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: path.c,v 1.22 2004/06/20 00:45:37 navaraf Exp $ */
|
||||
/* $Id: path.c,v 1.23 2004/07/03 17:40:27 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
#include <win32k/float.h>
|
||||
|
||||
|
@ -403,7 +403,6 @@ PATH_Arc ( PDC dc, INT x1, INT y1, INT x2, INT y2,
|
|||
INT xStart, INT yStart, INT xEnd, INT yEnd)
|
||||
{
|
||||
GdiPath *pPath;
|
||||
DC *pDC;
|
||||
double angleStart, angleEnd, angleStartQuadrant, angleEndQuadrant=0.0;
|
||||
/* Initialize angleEndQuadrant to silence gcc's warning */
|
||||
double x, y;
|
||||
|
@ -442,10 +441,10 @@ PATH_Arc ( PDC dc, INT x1, INT y1, INT x2, INT y2,
|
|||
pointStart.y=(FLOAT)yStart;
|
||||
pointEnd.x=(FLOAT)xEnd;
|
||||
pointEnd.y=(FLOAT)yEnd;
|
||||
INTERNAL_LPTODP_FLOAT(pDC, corners);
|
||||
INTERNAL_LPTODP_FLOAT(pDC, corners+1);
|
||||
INTERNAL_LPTODP_FLOAT(pDC, &pointStart);
|
||||
INTERNAL_LPTODP_FLOAT(pDC, &pointEnd);
|
||||
INTERNAL_LPTODP_FLOAT(dc, corners);
|
||||
INTERNAL_LPTODP_FLOAT(dc, corners+1);
|
||||
INTERNAL_LPTODP_FLOAT(dc, &pointStart);
|
||||
INTERNAL_LPTODP_FLOAT(dc, &pointEnd);
|
||||
|
||||
/* Make sure first corner is top left and second corner is bottom right */
|
||||
if ( corners[0].x > corners[1].x )
|
||||
|
|
|
@ -113,7 +113,7 @@ SOFTWARE.
|
|||
* the y-x-banding that's so nice to have...
|
||||
*/
|
||||
|
||||
/* $Id: region.c,v 1.60 2004/07/03 13:55:37 navaraf Exp $ */
|
||||
/* $Id: region.c,v 1.61 2004/07/03 17:40:27 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
#include <win32k/float.h>
|
||||
|
||||
|
@ -2209,14 +2209,8 @@ NtGdiExtCreateRegion(CONST PXFORM Xform,
|
|||
DWORD Count,
|
||||
CONST PROSRGNDATA RgnData)
|
||||
{
|
||||
HRGN hRgn;
|
||||
|
||||
// FIXME: Apply Xform transformation to the regional data
|
||||
if(Xform != NULL) {
|
||||
|
||||
}
|
||||
|
||||
return hRgn;
|
||||
UNIMPLEMENTED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: text.c,v 1.101 2004/07/03 13:55:37 navaraf Exp $ */
|
||||
/* $Id: text.c,v 1.102 2004/07/03 17:40:27 navaraf Exp $ */
|
||||
#include <w32k.h>
|
||||
|
||||
#include <ft2build.h>
|
||||
|
@ -1993,7 +1993,7 @@ NtGdiGetCharWidth32(HDC hDC,
|
|||
FT_Face face;
|
||||
FT_CharMap charmap, found = NULL;
|
||||
UINT i, glyph_index, BufferSize;
|
||||
HFONT hFont;
|
||||
HFONT hFont = 0;
|
||||
|
||||
if (LastChar < FirstChar)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue