projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e6548
)
Allocate memory even for NULL strings, as we must not return a NULL pointer
author
Hervé Poussineau
<hpoussin@reactos.org>
Fri, 7 Oct 2005 15:47:17 +0000
(15:47 +0000)
committer
Hervé Poussineau
<hpoussin@reactos.org>
Fri, 7 Oct 2005 15:47:17 +0000
(15:47 +0000)
svn path=/trunk/; revision=18310
reactos/drivers/bus/pci/pdo.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/bus/pci/pdo.c
b/reactos/drivers/bus/pci/pdo.c
index
52128ea
..
a56ddb7
100644
(file)
--- a/
reactos/drivers/bus/pci/pdo.c
+++ b/
reactos/drivers/bus/pci/pdo.c
@@
-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);