{
ULONG FirstPosition, i;
ULONG SkipFirstSlash = 0;
+ PAGED_CODE();
/* Zero the strings before continuing */
RtlZeroMemory(FirstPart, sizeof(ANSI_STRING));
FsRtlDoesDbcsContainWildCards(IN PANSI_STRING Name)
{
ULONG i;
+ PAGED_CODE();
/* Check every character */
for (i = 0; i < Name->Length; i++)
/*++
* @name FsRtlIsDbcsInExpression
- * @implemented
+ * @halfplemented
*
* Check if the Name string is in the Expression string.
*
*
* @return TRUE if Name is found in Expression, FALSE otherwise
*
- * @remarks None
+ * @remarks Implementation should be fixed to handle wildcards
*
*--*/
BOOLEAN
IN PANSI_STRING Name)
{
ULONG ExpressionPosition, NamePosition, MatchingChars = 0;
+ PAGED_CODE();
+ ASSERT(Name->Length);
+ ASSERT(Expression->Length);
ASSERT(!FsRtlDoesDbcsContainWildCards(Name));
/* One can't be null, both can be */
ANSI_STRING FirstPart, RemainingPart, Name;
BOOLEAN LastDot;
ULONG i;
+ PAGED_CODE();
/* Just quit if the string is empty */
if (!DbcsName.Length)
{
ANSI_STRING FirstPart, RemainingPart, Name;
ULONG i;
+ PAGED_CODE();
/* Just quit if the string is empty */
if (!DbcsName.Length)
IN PWCHAR UpcaseTable OPTIONAL)
{
ULONG i = 0, j, k = 0;
+ PAGED_CODE();
- ASSERT(!FsRtlDoesNameContainWildCards(Name));
+ ASSERT(!IgnoreCase || UpcaseTable);
while (i < Name->Length / sizeof(WCHAR) && k < Expression->Length / sizeof(WCHAR))
{
BOOLEAN StringsAreEqual, MemoryAllocated = FALSE;
ULONG i;
NTSTATUS Status;
+ PAGED_CODE();
/* Well, first check their size */
if (Name1->Length != Name2->Length) return FALSE;
{
ULONG FirstPosition, i;
ULONG SkipFirstSlash = 0;
+ PAGED_CODE();
/* Zero the strings before continuing */
RtlZeroMemory(FirstPart, sizeof(UNICODE_STRING));
FsRtlDoesNameContainWildCards(IN PUNICODE_STRING Name)
{
PWCHAR Ptr;
+ PAGED_CODE();
/* Loop through every character */
if (Name->Length)