Something went wrong. Try again.
Reactos
Something went wrong. Try again.
864 B · 32 lines
C
at master
123456789101112131415161718192021222324252627282930313233/* * PROJECT: VFAT Filesystem * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) * PURPOSE: Volume routines * COPYRIGHT: Copyright 1998 Jason Filby <jasonfilby@yahoo.com> * Copyright 2020 Doug Lyons <douglyons@douglyons.com> */
/* INCLUDES *****************************************************************/
#include "vfat.h"
#define NDEBUG#include <debug.h>
/* FUNCTIONS ****************************************************************/
const WCHAR *long_illegals = L"\"*\\<>/?:|";
BOOLEANvfatIsLongIllegal( WCHAR c){ return wcschr(long_illegals, c) ? TRUE : FALSE;}
BOOLEANIsDotOrDotDot(PCUNICODE_STRING Name){ return ((Name->Length == sizeof(WCHAR) && Name->Buffer[0] == L'.') || (Name->Length == 2 * sizeof(WCHAR) && Name->Buffer[0] == L'.' && Name->Buffer[1] == L'.'));}