mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:25:55 +00:00
Replace assert by ASSERT.
svn path=/trunk/; revision=11793
This commit is contained in:
parent
d1ad9c04ee
commit
0b6ffe64b0
5 changed files with 20 additions and 20 deletions
|
@ -241,7 +241,7 @@ BOOL Ext2ScanDir(PDEVICE_EXTENSION DeviceExt,
|
||||||
}
|
}
|
||||||
|
|
||||||
offset = offset + current->rec_len;
|
offset = offset + current->rec_len;
|
||||||
assert(current->rec_len != 0);
|
ASSERT(current->rec_len != 0);
|
||||||
DPRINT("offset %d\n",offset);
|
DPRINT("offset %d\n",offset);
|
||||||
}
|
}
|
||||||
DPRINT("Onto next block\n");
|
DPRINT("Onto next block\n");
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: create.c,v 1.1 2002/06/25 22:21:41 ekohl Exp $
|
/* $Id: create.c,v 1.2 2004/11/24 11:01:58 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -49,9 +49,9 @@ MupCreate(PDEVICE_OBJECT DeviceObject,
|
||||||
DPRINT("MupCreate() called\n");
|
DPRINT("MupCreate() called\n");
|
||||||
|
|
||||||
DeviceExt = DeviceObject->DeviceExtension;
|
DeviceExt = DeviceObject->DeviceExtension;
|
||||||
assert (DeviceExt);
|
ASSERT(DeviceExt);
|
||||||
Stack = IoGetCurrentIrpStackLocation (Irp);
|
Stack = IoGetCurrentIrpStackLocation (Irp);
|
||||||
assert (Stack);
|
ASSERT(Stack);
|
||||||
|
|
||||||
FileObject = Stack->FileObject;
|
FileObject = Stack->FileObject;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: create.c,v 1.4 2004/06/05 08:28:37 navaraf Exp $
|
/* $Id: create.c,v 1.5 2004/11/24 11:02:15 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -47,7 +47,7 @@ NtfsMakeAbsoluteFilename(PFILE_OBJECT pFileObject,
|
||||||
|
|
||||||
DPRINT("try related for %S\n", pRelativeFileName);
|
DPRINT("try related for %S\n", pRelativeFileName);
|
||||||
Fcb = pFileObject->FsContext;
|
Fcb = pFileObject->FsContext;
|
||||||
assert(Fcb);
|
ASSERT(Fcb);
|
||||||
|
|
||||||
/* verify related object is a directory and target name
|
/* verify related object is a directory and target name
|
||||||
don't start with \. */
|
don't start with \. */
|
||||||
|
@ -58,7 +58,7 @@ NtfsMakeAbsoluteFilename(PFILE_OBJECT pFileObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* construct absolute path name */
|
/* construct absolute path name */
|
||||||
assert(wcslen (Fcb->PathName) + 1 + wcslen (pRelativeFileName) + 1
|
ASSERT(wcslen (Fcb->PathName) + 1 + wcslen (pRelativeFileName) + 1
|
||||||
<= MAX_PATH);
|
<= MAX_PATH);
|
||||||
rcName = ExAllocatePool(NonPagedPool, MAX_PATH * sizeof(WCHAR));
|
rcName = ExAllocatePool(NonPagedPool, MAX_PATH * sizeof(WCHAR));
|
||||||
if (!rcName)
|
if (!rcName)
|
||||||
|
@ -169,9 +169,9 @@ NtfsCreateFile(PDEVICE_OBJECT DeviceObject,
|
||||||
DPRINT("NtfsCreateFile() called\n");
|
DPRINT("NtfsCreateFile() called\n");
|
||||||
|
|
||||||
DeviceExt = DeviceObject->DeviceExtension;
|
DeviceExt = DeviceObject->DeviceExtension;
|
||||||
assert (DeviceExt);
|
ASSERT(DeviceExt);
|
||||||
Stack = IoGetCurrentIrpStackLocation (Irp);
|
Stack = IoGetCurrentIrpStackLocation (Irp);
|
||||||
assert (Stack);
|
ASSERT(Stack);
|
||||||
|
|
||||||
RequestedDisposition = ((Stack->Parameters.Create.Options >> 24) & 0xff);
|
RequestedDisposition = ((Stack->Parameters.Create.Options >> 24) & 0xff);
|
||||||
// RequestedOptions =
|
// RequestedOptions =
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: fcb.c,v 1.11 2004/06/05 08:28:37 navaraf Exp $
|
/* $Id: fcb.c,v 1.12 2004/11/24 11:02:15 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -452,9 +452,9 @@ NtfsDirFindFile(PDEVICE_EXTENSION DeviceExt,
|
||||||
LARGE_INTEGER StreamOffset;
|
LARGE_INTEGER StreamOffset;
|
||||||
PVOID Context;
|
PVOID Context;
|
||||||
|
|
||||||
assert(DeviceExt);
|
ASSERT(DeviceExt);
|
||||||
assert(DirectoryFcb);
|
ASSERT(DirectoryFcb);
|
||||||
assert(FileToFind);
|
ASSERT(FileToFind);
|
||||||
|
|
||||||
DPRINT("NtfsDirFindFile(VCB:%08x, dirFCB:%08x, File:%S)\n",
|
DPRINT("NtfsDirFindFile(VCB:%08x, dirFCB:%08x, File:%S)\n",
|
||||||
DeviceExt,
|
DeviceExt,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: finfo.c,v 1.3 2004/06/05 08:28:37 navaraf Exp $
|
/* $Id: finfo.c,v 1.4 2004/11/24 11:02:15 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -52,8 +52,8 @@ NtfsGetStandardInformation(PFCB Fcb,
|
||||||
return(STATUS_BUFFER_OVERFLOW);
|
return(STATUS_BUFFER_OVERFLOW);
|
||||||
|
|
||||||
/* PRECONDITION */
|
/* PRECONDITION */
|
||||||
assert(StandardInfo != NULL);
|
ASSERT(StandardInfo != NULL);
|
||||||
assert(Fcb != NULL);
|
ASSERT(Fcb != NULL);
|
||||||
|
|
||||||
RtlZeroMemory(StandardInfo,
|
RtlZeroMemory(StandardInfo,
|
||||||
sizeof(FILE_STANDARD_INFORMATION));
|
sizeof(FILE_STANDARD_INFORMATION));
|
||||||
|
@ -137,8 +137,8 @@ NtfsGetNameInformation(PFILE_OBJECT FileObject,
|
||||||
|
|
||||||
DPRINT("NtfsGetNameInformation() called\n");
|
DPRINT("NtfsGetNameInformation() called\n");
|
||||||
|
|
||||||
assert(NameInfo != NULL);
|
ASSERT(NameInfo != NULL);
|
||||||
assert(Fcb != NULL);
|
ASSERT(Fcb != NULL);
|
||||||
|
|
||||||
NameLength = wcslen(Fcb->PathName) * sizeof(WCHAR);
|
NameLength = wcslen(Fcb->PathName) * sizeof(WCHAR);
|
||||||
// NameLength = 2;
|
// NameLength = 2;
|
||||||
|
@ -165,8 +165,8 @@ NtfsGetInternalInformation(PFCB Fcb,
|
||||||
{
|
{
|
||||||
DPRINT("NtfsGetInternalInformation() called\n");
|
DPRINT("NtfsGetInternalInformation() called\n");
|
||||||
|
|
||||||
assert(InternalInfo);
|
ASSERT(InternalInfo);
|
||||||
assert(Fcb);
|
ASSERT(Fcb);
|
||||||
|
|
||||||
if (*BufferLength < sizeof(FILE_INTERNAL_INFORMATION))
|
if (*BufferLength < sizeof(FILE_INTERNAL_INFORMATION))
|
||||||
return(STATUS_BUFFER_OVERFLOW);
|
return(STATUS_BUFFER_OVERFLOW);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue