mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 15:46:52 +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;
|
||||
assert(current->rec_len != 0);
|
||||
ASSERT(current->rec_len != 0);
|
||||
DPRINT("offset %d\n",offset);
|
||||
}
|
||||
DPRINT("Onto next block\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: 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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -49,9 +49,9 @@ MupCreate(PDEVICE_OBJECT DeviceObject,
|
|||
DPRINT("MupCreate() called\n");
|
||||
|
||||
DeviceExt = DeviceObject->DeviceExtension;
|
||||
assert (DeviceExt);
|
||||
ASSERT(DeviceExt);
|
||||
Stack = IoGetCurrentIrpStackLocation (Irp);
|
||||
assert (Stack);
|
||||
ASSERT(Stack);
|
||||
|
||||
FileObject = Stack->FileObject;
|
||||
|
||||
|
|
|
@ -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: 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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -47,7 +47,7 @@ NtfsMakeAbsoluteFilename(PFILE_OBJECT pFileObject,
|
|||
|
||||
DPRINT("try related for %S\n", pRelativeFileName);
|
||||
Fcb = pFileObject->FsContext;
|
||||
assert(Fcb);
|
||||
ASSERT(Fcb);
|
||||
|
||||
/* verify related object is a directory and target name
|
||||
don't start with \. */
|
||||
|
@ -58,7 +58,7 @@ NtfsMakeAbsoluteFilename(PFILE_OBJECT pFileObject,
|
|||
}
|
||||
|
||||
/* construct absolute path name */
|
||||
assert(wcslen (Fcb->PathName) + 1 + wcslen (pRelativeFileName) + 1
|
||||
ASSERT(wcslen (Fcb->PathName) + 1 + wcslen (pRelativeFileName) + 1
|
||||
<= MAX_PATH);
|
||||
rcName = ExAllocatePool(NonPagedPool, MAX_PATH * sizeof(WCHAR));
|
||||
if (!rcName)
|
||||
|
@ -169,9 +169,9 @@ NtfsCreateFile(PDEVICE_OBJECT DeviceObject,
|
|||
DPRINT("NtfsCreateFile() called\n");
|
||||
|
||||
DeviceExt = DeviceObject->DeviceExtension;
|
||||
assert (DeviceExt);
|
||||
ASSERT(DeviceExt);
|
||||
Stack = IoGetCurrentIrpStackLocation (Irp);
|
||||
assert (Stack);
|
||||
ASSERT(Stack);
|
||||
|
||||
RequestedDisposition = ((Stack->Parameters.Create.Options >> 24) & 0xff);
|
||||
// RequestedOptions =
|
||||
|
|
|
@ -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: 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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -452,9 +452,9 @@ NtfsDirFindFile(PDEVICE_EXTENSION DeviceExt,
|
|||
LARGE_INTEGER StreamOffset;
|
||||
PVOID Context;
|
||||
|
||||
assert(DeviceExt);
|
||||
assert(DirectoryFcb);
|
||||
assert(FileToFind);
|
||||
ASSERT(DeviceExt);
|
||||
ASSERT(DirectoryFcb);
|
||||
ASSERT(FileToFind);
|
||||
|
||||
DPRINT("NtfsDirFindFile(VCB:%08x, dirFCB:%08x, File:%S)\n",
|
||||
DeviceExt,
|
||||
|
|
|
@ -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: 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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -52,8 +52,8 @@ NtfsGetStandardInformation(PFCB Fcb,
|
|||
return(STATUS_BUFFER_OVERFLOW);
|
||||
|
||||
/* PRECONDITION */
|
||||
assert(StandardInfo != NULL);
|
||||
assert(Fcb != NULL);
|
||||
ASSERT(StandardInfo != NULL);
|
||||
ASSERT(Fcb != NULL);
|
||||
|
||||
RtlZeroMemory(StandardInfo,
|
||||
sizeof(FILE_STANDARD_INFORMATION));
|
||||
|
@ -137,8 +137,8 @@ NtfsGetNameInformation(PFILE_OBJECT FileObject,
|
|||
|
||||
DPRINT("NtfsGetNameInformation() called\n");
|
||||
|
||||
assert(NameInfo != NULL);
|
||||
assert(Fcb != NULL);
|
||||
ASSERT(NameInfo != NULL);
|
||||
ASSERT(Fcb != NULL);
|
||||
|
||||
NameLength = wcslen(Fcb->PathName) * sizeof(WCHAR);
|
||||
// NameLength = 2;
|
||||
|
@ -165,8 +165,8 @@ NtfsGetInternalInformation(PFCB Fcb,
|
|||
{
|
||||
DPRINT("NtfsGetInternalInformation() called\n");
|
||||
|
||||
assert(InternalInfo);
|
||||
assert(Fcb);
|
||||
ASSERT(InternalInfo);
|
||||
ASSERT(Fcb);
|
||||
|
||||
if (*BufferLength < sizeof(FILE_INTERNAL_INFORMATION))
|
||||
return(STATUS_BUFFER_OVERFLOW);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue