We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 619ee0f commit 6e71c2eCopy full SHA for 6e71c2e
phlib/basesup.c
@@ -877,7 +877,7 @@ BOOLEAN PhCopyStringZFromBytes(
877
878
// Copy the string if there is enough room.
879
880
- if (OutputBuffer && OutputCount >= i + sizeof(UNICODE_NULL)) // need one character for null terminator
+ if (OutputBuffer && OutputCount >= i + sizeof(ANSI_NULL)) // need one character for null terminator
881
{
882
PhZeroExtendToUtf16Buffer(InputBuffer, i, OutputBuffer);
883
OutputBuffer[i] = UNICODE_NULL;
@@ -889,7 +889,7 @@ BOOLEAN PhCopyStringZFromBytes(
889
}
890
891
if (ReturnCount)
892
- *ReturnCount = i + sizeof(UNICODE_NULL);
+ *ReturnCount = i + sizeof(ANSI_NULL);
893
894
return copied;
895
0 commit comments