summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1eaff64)
svn path=/trunk/; revision=16999
if (*NameLength < Length + sizeof(WCHAR))
{
if (*NameLength < Length + sizeof(WCHAR))
{
- /* prevent underflow! */
- if (*NameLength >= sizeof(WCHAR))
- {
- Length = *NameLength - sizeof(WCHAR);
- }
- else
- {
- Length = 0;
- Status = STATUS_BUFFER_TOO_SMALL;
- }
+ *NameLength = Length;
+ Status = STATUS_BUFFER_TOO_SMALL;
{
RtlCopyMemory(AtomName,
NameString,
{
RtlCopyMemory(AtomName,
NameString,
if (*NameLength < Length + sizeof(WCHAR))
{
if (*NameLength < Length + sizeof(WCHAR))
{
- /* prevent underflow! */
- if (*NameLength >= sizeof(WCHAR))
- {
- Length = *NameLength - sizeof(WCHAR);
- }
- else
- {
- Length = 0;
- Status = STATUS_BUFFER_TOO_SMALL;
- }
+ *NameLength = Length;
+ Status = STATUS_BUFFER_TOO_SMALL;
{
RtlCopyMemory(AtomName,
Entry->Name,
{
RtlCopyMemory(AtomName,
Entry->Name,