https://git.reactos.org/?p=reactos.git;a=commitdiff;h=dcd95c1a85d88c2adc98a…
commit dcd95c1a85d88c2adc98af14194e9b3057cbcb27
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Dec 17 18:25:43 2017 +0100
[FASTFAT] Add a comment (and an ASSERT) in VfatCreateFile() that shows that my stats
code is broken...
---
drivers/filesystems/fastfat/create.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/filesystems/fastfat/create.c b/drivers/filesystems/fastfat/create.c
index 248d99e7f7..20a4bc0d04 100644
--- a/drivers/filesystems/fastfat/create.c
+++ b/drivers/filesystems/fastfat/create.c
@@ -982,6 +982,8 @@ VfatCreateFile(
/* FIXME : test write access if requested */
+ /* FIXME: That is broken, we cannot reach this code path with failure */
+ ASSERT(NT_SUCCESS(Status));
if (NT_SUCCESS(Status))
{
vfatAddToStat(DeviceExt, Fat.SuccessfulCreates, 1);