Skip to content

Two issues in the code #2

Closed
Closed
@EddieIvan01

Description

LPWSTR lpwStream = (LPWSTR)DS_STREAM_RENAME;
fRename.FileNameLength = sizeof(lpwStream);

sizeof(lpwStream) is always 8 bytes on 64-bit OS

FILE_RENAME_INFO fRename;
RtlCopyMemory(fRename.FileName, lpwStream, sizeof(lpwStream));

The FILE_RENAME_INFO.FileName buffer need to be allocated by yourself

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions