Wow, not even two hours into using V5.07, and I got bitten by this bug...

I don't seem to be able to copy the entire trashed line, which is some 280
characters long.  So here is an image of the entire trash-line:

https://www.flickr.com/photos/derelllicht/51232900663

Here is what the code looked like before being pspad-ed:

   printf("Last logon: %s [%"PRIu64"]
", ctm, (u64) max_logon_time) ; 
//lint !e571
#endif
   
   //  look at current time


Here is what the trashed section looks like in a hex dump:
023A0:  20 20 20 70 72 69 6E 74 66 28 22 4C 61 73 74 20  |    printf("Last
 |
023B0:  6C 6F 67 6F 6E 3A 20 25 73 20 5B 25 22 50 52 49  | logon: %s [%"PRI |
023C0:  75 36 34 22 5D 5C 6E 22 2C 20 63 74 6D 2C 20 28  | u64"]
", ctm, ( |
023D0:  75 36 34 29 20 6D 61 78 5F 6C 6F 67 6F 6E 5F 74  | u64) max_logon_t |
023E0:  69 6D 65 29 20 3B 20 20 2F 2F 6C 69 6E 74 20 21  | ime) ;  //lint ! |
023F0:  65 35 37 31 0D 0A 20 20 20 0D 0A 20 20 20 0D 0A  | e571..   ..   .. |
02400:  23 65 3F 3F 69 66 00 4D 00 00 3F 3F 00 00 00 00  | #e??if.M..??.... |
02410:  00 00 3F 00 00 00 00 00 00 00 00 00 04 00 3F 3F  | ..?...........?? |
02420:  3F 3F 00 00 00 00 00 00 49 00 3F 3F 00 00 00 00  | ??......I.??.... |
02430:  3F 3F 3F 00 00 00 00 00 00 00 01 00 04 00 3F 3F  | ???...........?? |
02440:  00 00 00 00 00 00 6E 00 6E 00 3F 3F 00 00 00 00  | ......n.n.??.... |
02450:  3F 3F 3F 00 00 00 00 00 00 00 3F 02 01 00 02 00  | ???.......?..... |
02460:  0D 0A 00 6E 75 49 74 65 6D 00 3F 3F 00 00 00 00  | ...nuItem.??.... |
02470:  3F 3F 3F 00 00 00 00 00 00 00 3F 4A 3F 3F 05 00  | ???.......?J??.. |
02480:  08 00 00 00 65 73 00 61 79 00 3F 3F 00 00 00 00  | ....es.ay.??.... |
02490:  3F 3F 3F 00 00 00 00 00 00 00 3F 02 01 00 03 00  | ???.......?..... |
024A0:  4E 34 38 00 00 74 72 61 79 00 3F 3F 00 00 00 00  | N48..tray.??.... |
024B0:  3F 3F 3F 00 00 00 00 00 00 00 3F 02 01 00 09 00  | ???.......?..... |
024C0:  50 6F 70 75 70 53 61 76 65 00 3F 3F 00 00 00 00  | PopupSave.??.... |
024D0:  3F 3F 3F 00 00 00 00 00 00 00 3F 02 01 00 03 00  | ???.......?..... |
024E0:  4E 33 38 00 69 63 6B 00 00 00 3F 3F 00 00 00 00  | N38.ick...??.... |
024F0:  3F 3F 3F 00 00 00 00 00 00 00 3F 02 01 00 09 0D  | ???.......?..... |
02500:  0A 20 20 20 0D 0A 20 20 20 2F 2F 20 20 6C 6F 6F  | .   ..   //  loo |
02510:  6B 20 61 74 20 63 75 72 72 65 6E 74 20 74 69 6D  | k at current tim |
02520:  65 0D 0A 20 20 20 5F 74 7A 73 65 74 28 29 3B 0D  | e..   _tzset();. |


So it is only the #endif line which was destroyed...

My OS info:
Edition Windows 10 Pro
Version 20H2
Installed on    ‎02/‎08/‎21
OS build        19042.928
Experience      Windows Feature Experience Pack 120.2212.551.0

I'm editing two .cpp files and one .htm file

-- 
<https://forum.pspad.com/read.php?4,73692,76015>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem