-/* $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>
int k;
int b;
int bResume;
- PLIST_ENTRY ple;
+ PLIST_ENTRY ple = NULL;
bResume = 0;
i = 0;
while (z < 50)
{
- TerminateThread(thread, 0);
z++;
thread=CreateThread(NULL,
0x1000,
SuspendThread(thread);
printf("R");
ResumeThread(thread);
+ TerminateThread(thread, 0);
}
ExitProcess(0);
CloseHandle(hDisk);
printf("DeviceIoControl failed! Error: %lu\n",
GetLastError());
- free(Buffer);
return 0;
}
-/* $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
{
PISAPNP_DESCRIPTOR Descriptor;
UCHAR tmp[3];
- ULONG irq, i, last;
+ ULONG irq, i, last = 0;
BOOLEAN found;
NTSTATUS Status;
{
PISAPNP_DESCRIPTOR Descriptor;
UCHAR tmp[2];
- ULONG dma, flags, i, last;
+ ULONG dma, flags, i, last = 0;
BOOLEAN found;
NTSTATUS Status;
PISAPNP_LOGICAL_DEVICE LogicalDevice;
PDEVICE_RELATIONS Relations;
PLIST_ENTRY CurrentEntry;
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
ULONG Size;
ULONG i;
-/* $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
if (!RtlCreateUnicodeString(&Mailslot->Name, FileObject->FileName.Buffer))
{
ExFreePool(Mailslot);
- ExFreePool(Fcb);
Irp->IoStatus.Status = STATUS_NO_MEMORY;
Irp->IoStatus.Information = 0;
-/* $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
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);
UINT OutputBufferLength;
PFILE_REQUEST_RECVFROM Request;
PFILE_REPLY_RECVFROM Reply;
- DWORD NumberOfBytesRecvd;
PAFDFCB FCB;
AFD_DbgPrint(MAX_TRACE, ("Called.\n"));
Request,
Reply,
TRUE);
- Reply->NumberOfBytesRecvd = NumberOfBytesRecvd;
+ Reply->NumberOfBytesRecvd = 0; /* FIXME */
Reply->Status = NO_ERROR;
} else {
Status = STATUS_INVALID_PARAMETER;
* Status of operation
*/
{
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
UINT InputBufferLength;
UINT OutputBufferLength;
PFILE_REQUEST_SEND Request;
{
PIO_STACK_LOCATION IoSp = IoGetCurrentIrpStackLocation(Irp);
PFILE_OBJECT FileObject = IoSp->FileObject;
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_NOT_IMPLEMENTED;
ULONG Length;
PVOID Buffer;
ULONG Offset;
*/
{
PTDI_CONNECTION_INFORMATION ReceiveInfo;
- PTDI_CONNECTION_INFORMATION ReturnInfo;
+ TDI_CONNECTION_INFORMATION ReturnInfo;
PDEVICE_OBJECT DeviceObject;
IO_STATUS_BLOCK Iosb;
NTSTATUS Status;
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);
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)
{
NTSTATUS ntStatus;
IO_STATUS_BLOCK IoStatus;
OBJECT_ATTRIBUTES ObjectAttributes;
- PWCHAR PathPrefix;
+ PWCHAR PathPrefix = NULL;
USHORT PathLen;
UNICODE_STRING FullFileName;
ULONG FullFileNameLength;
}
IoDeleteDevice(OldDeviceObject);
- }
NdisDeregisterProtocol(
&Status,
NdisProtocolHandle
);
+ }
// Free the adapters names
ExFreePool( bindP );
* 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
PCHAR Buffer;
ULONG Bus;
ULONG DeviceCount;
- BOOLEAN FoundDevice;
+ BOOLEAN FoundDevice = FALSE;
NTSTATUS Status;
DPRINT("CdromClassFindDevices() called.\n");
* 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
PCHAR Buffer;
ULONG Bus;
ULONG DeviceCount;
- BOOLEAN FoundDevice;
+ BOOLEAN FoundDevice = FALSE;
NTSTATUS Status;
DPRINT("DiskClassFindDevices() called.\n");
case 32:
BitmapType = BMF_32BPP;
break;
+
+ default:
+ return FALSE;
}
ScreenSize.cx = ppdev->ScreenWidth;
{
PBLTRECTFUNC BltRectFunc;
RECTL CombinedRect;
- BOOL Ret;
+ BOOL Ret = FALSE;
RECT_ENUM RectEnum;
BOOL EnumMore;
unsigned i;
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 )
{
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];
// 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;
* 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"
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
-/* $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
ANSI_STRING StringA;
LONG ErrorCode = ERROR_SUCCESS;
DWORD NameLength;
- DWORD ClassLength;
+ DWORD ClassLength = 0;
DWORD BufferSize;
DWORD ResultSize;
HANDLE KeyHandle;
ULONG BufferSize;
ULONG ResultSize;
ULONG NameLength;
- ULONG ClassLength;
+ ULONG ClassLength = 0;
HANDLE KeyHandle;
LONG ErrorCode = ERROR_SUCCESS;
NTSTATUS Status;
ULONG NameLength;
ULONG BufferSize;
- ULONG DataLength;
+ ULONG DataLength = 0;
ULONG ResultSize;
HANDLE KeyHandle;
LONG ErrorCode;
ULONG NameLength;
ULONG BufferSize;
- ULONG DataLength;
+ ULONG DataLength = 0;
ULONG ResultSize;
HANDLE KeyHandle;
LONG ErrorCode;
KEY_FULL_INFORMATION FullInfoBuffer;
PKEY_FULL_INFORMATION FullInfo;
ULONG FullInfoSize;
- ULONG ClassLength;
+ ULONG ClassLength = 0;
HANDLE KeyHandle;
NTSTATUS Status;
LONG ErrorCode = ERROR_SUCCESS;
-/* $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
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;
}
* 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
DWORD i;
LPTSTR lpName;
LPTSTR lpData;
- LPTSTR lpExpandData;
+ LPTSTR lpExpandData = NULL;
DWORD dwNameLength;
DWORD dwDataLength;
DWORD dwType;
// 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" ) {
IN OUT PFORMAT_CONTEXT Context)
{
IO_STATUS_BLOCK IoStatusBlock;
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
PUCHAR Buffer;
LARGE_INTEGER FileOffset;
ULONG FirstRootDirSector;
IN OUT PFORMAT_CONTEXT Context)
{
IO_STATUS_BLOCK IoStatusBlock;
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
PUCHAR Buffer;
LARGE_INTEGER FileOffset;
ULONG FirstRootDirSector;
-/* $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
int FontFamilyCount;
unsigned FontFamilySize;
PFONTFAMILYINFO Info;
- int Ret;
+ int Ret = 0;
unsigned i;
ENUMLOGFONTEXA EnumLogFontExA;
NEWTEXTMETRICEXA NewTextMetricExA;
#define _WIN32_WINNT 0x0501
#define __USE_W32API
#define NTOS_MODE_USER
+#define __NO_CTYPE_INLINES
#include <ntos.h>
#include <stdarg.h>
#include <stdio.h>
-/* $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
{
PGLOBAL_HANDLE phandle;
- BOOL locked;
+ BOOL locked = FALSE;
DPRINT("GlobalUnlock( 0x%lX )\n", (ULONG)hMem);
-/* $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
*
#define NDEBUG
#include "../include/debug.h"
#include <string.h>
+#define __NO_CTYPE_INLINES
#include <ctype.h>
#include <sys/types.h>
#include <stdio.h>
-/* $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
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;
-/* $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
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;
-# $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 = ../..
-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
-/* $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
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;
-/* $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
#include <ddk/ntddk.h>
#include <stdarg.h>
#include <stdlib.h>
+#define __NO_CTYPE_INLINES
#include <ctype.h>
#include <string.h>
#include <limits.h>
-/* $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
*/
#include <stdlib.h>
+#define __NO_CTYPE_INLINES
#include <ctype.h>
/*
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <limits.h>
+#define __NO_CTYPE_INLINES
#include <ctype.h>
#include <stdlib.h>
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <limits.h>
+#define __NO_CTYPE_INLINES
#include <ctype.h>
#include <stdlib.h>
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,
-/* $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
#define NDEBUG
#include <ntdll/ntdll.h>
-
-
/* FUNCTIONS *****************************************************************/
/*
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
#include <ntdll/rtl.h>
#include <ntos/minmax.h>
+#define __NO_CTYPE_INLINES
#include <ctype.h>
#define NDEBUG
case SB_CTL:
Vertical = (GetWindowLongW(Wnd, GWL_STYLE) & SBS_VERT) != 0;
break;
+
+ default:
+ return;
}
if (! IntGetScrollBarInfo(Wnd, Bar, &Info))
{
TlsSetValue(User32TlsIndex, 0);
}
-DWORD
+VOID
Init(VOID)
{
- DWORD Status;
-
/* Set up the kernel callbacks. */
NtCurrentTeb()->Peb->KernelCallbackTable[USER32_CALLBACK_WINDOWPROC] =
(PVOID)User32CallWindowProcFromKernel;
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);
}
-/* $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
int nIndex,
LONG dwNewLong)
{
+ UNICODE_STRING str2buf;
PUNICODE_STRING str;
- PUNICODE_STRING str2;
+ PUNICODE_STRING str2 = &str2buf;
if ( nIndex != GCL_MENUNAME )
{
}
else
{
- RtlCreateUnicodeString ( str2, (LPWSTR)dwNewLong );
+ RtlCreateUnicodeStringFromAsciiz ( &str2buf,(LPSTR)dwNewLong );
}
str = (PUNICODE_STRING)NtUserSetClassLong(hWnd, nIndex, (DWORD)str2, TRUE);
int nIndex,
LONG dwNewLong)
{
+ UNICODE_STRING str2buf;
PUNICODE_STRING str;
- PUNICODE_STRING str2;
+ PUNICODE_STRING str2 = &str2buf;
if (nIndex != GCL_MENUNAME )
{
}
else
{
- RtlCreateUnicodeStringFromAsciiz ( str2,(LPSTR)dwNewLong );
+ RtlCreateUnicodeString ( &str2buf, (LPWSTR)dwNewLong );
}
str = (PUNICODE_STRING)NtUserSetClassLong(hWnd, nIndex, (DWORD)str2, TRUE);
-/* $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
BOOL moved = FALSE;
DWORD dwPoint = GetMessagePos();
BOOL DragFullWindows = FALSE;
- HWND hWndParent;
+ HWND hWndParent = NULL;
SystemParametersInfoA(SPI_GETDRAGFULLWINDOWS, 0, &DragFullWindows, 0);
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)))
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)
* REVISIONS:
* CSH 01/09-2000 Created
*/
+#define __NO_CTYPE_INLINES
#include <ctype.h>
#include <ws2_32.h>
Error = Provider->ProcTable.lpWSPDuplicateSocket(s,
dwProcessId,
lpProtocolInfo,
- &Error);
+ &Errno);
DereferenceProviderByPointer(Provider);
if (Error == SOCKET_ERROR)
OUT LPDWORD lpdwFlags)
{
INT Errno;
- int Error;
BOOL Success;
PCATALOG_ENTRY Provider;
lpcbTransfer,
fWait,
lpdwFlags,
- &Error);
+ &Errno);
DereferenceProviderByPointer(Provider);
if (Success == FALSE)
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;
* 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
ULONG Bus,
PKEY_VALUE_FULL_INFORMATION *BusInformation)
{
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
/* Controller Stuff */
UNICODE_STRING ControllerString;
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};
-/* $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.
*
TCHAR buffer[32];
ULONG filecount = 0;
ULONG dircount = 0;
- INT count;
+ INT count = 0;
USHORT screenwidth;
INT longestfname = 0;
int wmain( int argc, WCHAR *argv[] )
{
int badArg;
- DWORD media;
+ DWORD media = FMIFS_HARDDISK;
DWORD driveType;
WCHAR fileSystem[1024];
WCHAR volumeName[1024];
fgetws( input, sizeof(input)/2, stdin );
media = FMIFS_FLOPPY;
-
-
- driveType = DRIVE_FIXED;
- media = FMIFS_HARDDISK;
}
//
-/* $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
*
{
CurrentService = CONTAINING_RECORD(ServiceEntry, SERVICE, ServiceListEntry);
- if ((CurrentGroup->GroupName.Length > 0) &&
+ if ((CurrentService->ServiceGroup.Length == 0) &&
(CurrentService->Start == SERVICE_AUTO_START) &&
(CurrentService->ServiceVisited == FALSE))
{
{
CurrentService = CONTAINING_RECORD(ServiceEntry, SERVICE, ServiceListEntry);
- if ((CurrentGroup->GroupName.Length == 0) &&
+ if ((CurrentService->ServiceGroup.Length == 0) &&
(CurrentService->Start == SERVICE_AUTO_START) &&
(CurrentService->ServiceVisited == FALSE))
{
-/* $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
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
* 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
{
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)
{
* 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
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)
{
for (Y = DestRect->top; Y < DestRect->bottom; Y++)
{
- ULONG PatternY;
-
SourceX = SourcePoint->x;
DestBits = (PULONG)(
DestSurf->pvScan0 +
* 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
{
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)
{
* 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
{
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)
{
for (Y = DestRect->top; Y < DestRect->bottom; Y++)
{
- ULONG PatternY;
SourceX = SourcePoint->x;
if(UsesPattern)
* 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
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 */,
* 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
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)
{
* 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
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)
{
SURFOBJ* InputObj;
SURFOBJ* OutputObj;
PBLTRECTFUNC BltRectFunc;
- BOOLEAN Ret;
+ BOOLEAN Ret = TRUE;
RECTL ClipRect;
unsigned i;
POINTL Pt;
INTENG_ENTER_LEAVE EnterLeaveDest;
SURFOBJ* InputObj;
SURFOBJ* OutputObj;
- BOOLEAN Ret;
+ BOOLEAN Ret = TRUE;
RECTL ClipRect;
unsigned i;
POINTL Pt;
* 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
IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave)
{
POINTL SrcPoint;
- BOOL Result;
+ BOOL Result = TRUE;
if (EnterLeave->OutputObj != EnterLeave->DestObj && NULL != EnterLeave->OutputObj)
{
* 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
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(
* 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
ULONG iTransColor,
ULONG Reserved)
{
- BOOL Ret;
+ BOOL Ret = TRUE;
BYTE ClippingType;
INTENG_ENTER_LEAVE EnterLeaveSource, EnterLeaveDest;
SURFOBJ *InputObj, *OutputObj;
* 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
NTSTATUS Status;
NTUSERDISPATCHMESSAGEINFO MsgInfo;
PWINDOW_OBJECT WindowObject;
- LRESULT Result;
+ LRESULT Result = TRUE;
Status = MmCopyFromCaller(&MsgInfo, UnsafeMsgInfo, sizeof(NTUSERDISPATCHMESSAGEINFO));
if (! NT_SUCCESS(Status))
PDOSENDMESSAGE dsm,
PNTUSERSENDMESSAGEINFO UnsafeInfo)
{
- LRESULT Result;
+ LRESULT Result = TRUE;
NTSTATUS Status;
PWINDOW_OBJECT Window;
NTUSERSENDMESSAGEINFO Info;
* 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
Style = WS_HSCROLL | WS_VSCROLL;
break;
case SB_CTL:
+ Style = 0;
break;
default:
IntReleaseWindowObject(Window);
* 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
HMENU Menu,
BOOL *Changed)
{
- PMENU_OBJECT OldMenuObject, NewMenuObject;
+ PMENU_OBJECT OldMenuObject, NewMenuObject = NULL;
*Changed = (WindowObject->IDMenu != (UINT) Menu);
if (! *Changed)
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);
IntAddWndProcHandle(WNDPROC WindowProc, BOOL IsUnicode)
{
WORD i;
- WORD FreeSpot;
+ WORD FreeSpot = 0;
BOOL found;
WndProcHandle *OldArray;
WORD OldArraySize;
* 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) \
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);
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)))
{
BOOL bInRect = FALSE;
BITMAPOBJ *BitmapObject;
SURFOBJ *SurfaceObject;
- HPALETTE Pal;
+ HPALETTE Pal = 0;
PPALGDI PalGDI;
USHORT PalMode;
XLATEOBJ *XlateObj;
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);
* 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>
{
PGDIBRUSHOBJ BrushObject;
HBRUSH hBrush;
- HBITMAP hPattern;
+ HBITMAP hPattern = 0;
switch (LogBrush->lbStyle)
{
RECTL DestRect;
BITMAPOBJ *BitmapObj;
POINTL BrushOrigin;
- BOOL ret;
+ BOOL ret = TRUE;
BitmapObj = BITMAPOBJ_LockBitmap(dc->w.hBitmap);
if (BitmapObj == NULL)
INT cRects,
ULONG Reserved)
{
- PPATRECT rb;
+ PPATRECT rb = NULL;
NTSTATUS Status;
BOOL Ret;
* 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
BOOL ForceBackground)
{
PDC dc;
- HPALETTE oldPal;
+ HPALETTE oldPal = NULL;
PPALGDI PalGDI;
// FIXME: mark the palette as a [fore\back]ground pal
* 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
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;
* 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
*
break;
case OBJ_PAL:
DPRINT1("FIXME: NtGdiGetCurrentObject() ObjectType OBJ_PAL not supported yet!\n");
+ SelObject = NULL;
break;
case OBJ_FONT:
SelObject = dc->w.hFont;
break;
case OBJ_COLORSPACE:
DPRINT1("FIXME: NtGdiGetCurrentObject() ObjectType OBJ_COLORSPACE not supported yet!\n");
+ SelObject = NULL;
break;
default:
SelObject = NULL;
PPALGDI PalGDI;
DWORD objectType;
COLORREF MonoColorMap[2];
- ULONG NumColors;
+ ULONG NumColors = 0;
HRGN hVisRgn;
USHORT Mode;
PGDIBRUSHOBJ pen;
PGDIBRUSHOBJ brush;
XLATEOBJ *XlateObj;
- HPALETTE Pal;
+ HPALETTE Pal = 0;
USHORT Mode;
ULONG iColor;
PGDIBRUSHOBJ pen;
PGDIBRUSHOBJ brush;
XLATEOBJ *XlateObj;
- HPALETTE Pal;
+ HPALETTE Pal = 0;
USHORT Mode;
ULONG iColor;
* 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)
int YEnd)
{
BITMAPOBJ *BitmapObj;
- BOOL Ret;
+ BOOL Ret = TRUE;
PGDIBRUSHOBJ PenBrushObj;
RECTL Bounds;
POINT Points[2];
* 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>
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;
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 )
* 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>
DWORD Count,
CONST PROSRGNDATA RgnData)
{
- HRGN hRgn;
-
- // FIXME: Apply Xform transformation to the regional data
- if(Xform != NULL) {
-
- }
-
- return hRgn;
+ UNIMPLEMENTED;
+ return 0;
}
BOOL
* 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>
FT_Face face;
FT_CharMap charmap, found = NULL;
UINT i, glyph_index, BufferSize;
- HFONT hFont;
+ HFONT hFont = 0;
if (LastChar < FirstChar)
{