mirror of
https://github.com/reactos/reactos.git
synced 2026-07-03 20:34:24 +08:00
Allocate memory even for NULL strings, as we must not return a NULL pointer
svn path=/trunk/; revision=18310
This commit is contained in:
@@ -107,8 +107,11 @@ PdoQueryId(
|
||||
break;
|
||||
|
||||
case BusQueryInstanceID:
|
||||
/* FIXME: RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING flag
|
||||
* needs to be removed once PciCreateInstanceIDString is fixed
|
||||
*/
|
||||
Status = RtlDuplicateUnicodeString(
|
||||
RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE,
|
||||
RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE | RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING,
|
||||
&DeviceExtension->InstanceID,
|
||||
&String);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user