DP News-Robot |
3. Mär 2020 12:10 |
Use SetString if your source memory reagion with characters is not null-terminated…
Too many people forget this (including myself) every now and then) so here is a reminder to use the [WayBack]*SetString*method when assigning strings from memory regions having characters but no null terminator: Anyway, assuming that you use a Unicode Delphi you want to use SetString in its place: SetString(password, PWideChar(Credential.CredentialBlob), Credential.CredentialBlobSize div 2); It was […]
Weiterlesen...
|