UsbDk: simplify CRegText and make it more robust

1. Replace pointer to CWdmMemoryBuffer with inplace object
2. Ensure proper error handling on memory allocation failures

Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Dmitry Fleytman 2014-09-11 10:13:17 +03:00
parent 7bfc8c8fb4
commit 0cdabff70d
3 changed files with 8 additions and 15 deletions

View file

@ -23,8 +23,3 @@
#include "stdafx.h"
#include "MemoryBuffer.h"
CWdmMemoryBuffer* CWdmMemoryBuffer::GetMemoryBuffer(PVOID Buffer, SIZE_T Size)
{
return new CWdmMemoryBuffer(Buffer, Size);
}