mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 15:51:49 +00:00
- Check that memory allocation succeeded
svn path=/trunk/; revision=36066
This commit is contained in:
parent
d206ae228c
commit
35827a3001
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,8 @@ CdfsCreateFCB(PCWSTR FileName)
|
|||
PFCB Fcb;
|
||||
|
||||
Fcb = ExAllocatePoolWithTag(NonPagedPool, sizeof(FCB), TAG_FCB);
|
||||
if(!Fcb) return NULL;
|
||||
|
||||
RtlZeroMemory(Fcb, sizeof(FCB));
|
||||
|
||||
if (FileName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue