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:
parent
7bfc8c8fb4
commit
0cdabff70d
3 changed files with 8 additions and 15 deletions
|
|
@ -23,8 +23,3 @@
|
|||
|
||||
#include "stdafx.h"
|
||||
#include "MemoryBuffer.h"
|
||||
|
||||
CWdmMemoryBuffer* CWdmMemoryBuffer::GetMemoryBuffer(PVOID Buffer, SIZE_T Size)
|
||||
{
|
||||
return new CWdmMemoryBuffer(Buffer, Size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue