Einzelnen Beitrag anzeigen

Benutzerbild von Zacherl
Zacherl

Registriert seit: 3. Sep 2004
4.629 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#10

AW: Function (WIMGetMountedImageInfo)

  Alt 17. Dez 2013, 22:43
Thats because of the C style boolean definition:
FALSE = 0
TRUE = everything else

You can just check the flag like this:
if (Buffer^[I].MountedForRW) then or
if (not Buffer^[I].MountedForRW) then If your problem is just the bool to string conversion you can go for this:
BoolToStr(Buffer^[I].MountedForRW, true) or just write you an own function, if you dont like the -1 or the default bool strings.
Projekte:
- GitHub (Profil, zyantific)
- zYan Disassembler Engine ( Zydis Online, Zydis GitHub)

Geändert von Zacherl (17. Dez 2013 um 22:46 Uhr)
  Mit Zitat antworten Zitat