File tree Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -871,12 +871,9 @@ BOOLEAN PhpGetDevicePropertyString(
871
871
}
872
872
873
873
if (requiredLength < sizeof (UNICODE_NULL ))
874
- {
875
- result = FALSE;
876
- goto Exit ;
877
- }
878
-
879
- * String = PhCreateStringEx (buffer , requiredLength - sizeof (UNICODE_NULL ));
874
+ * String = PhReferenceEmptyString ();
875
+ else
876
+ * String = PhCreateStringEx (buffer , requiredLength - sizeof (UNICODE_NULL ));
880
877
881
878
Exit :
882
879
@@ -937,12 +934,9 @@ BOOLEAN PhpGetDeviceInterfacePropertyString(
937
934
}
938
935
939
936
if (requiredLength < sizeof (UNICODE_NULL ))
940
- {
941
- result = FALSE;
942
- goto Exit ;
943
- }
944
-
945
- * String = PhCreateStringEx (buffer , requiredLength - sizeof (UNICODE_NULL ));
937
+ * String = PhReferenceEmptyString ();
938
+ else
939
+ * String = PhCreateStringEx (buffer , requiredLength - sizeof (UNICODE_NULL ));
946
940
947
941
Exit :
948
942
@@ -1001,12 +995,9 @@ BOOLEAN PhpGetClassPropertyString(
1001
995
}
1002
996
1003
997
if (requiredLength < sizeof (UNICODE_NULL ))
1004
- {
1005
- result = FALSE;
1006
- goto Exit ;
1007
- }
1008
-
1009
- * String = PhCreateStringEx (buffer , requiredLength - sizeof (UNICODE_NULL ));
998
+ * String = PhReferenceEmptyString ();
999
+ else
1000
+ * String = PhCreateStringEx (buffer , requiredLength - sizeof (UNICODE_NULL ));
1010
1001
1011
1002
Exit :
1012
1003
You can’t perform that action at this time.
0 commit comments