1 |
|
/* |
2 |
|
* clip_windows.cpp - Clipboard handling, Windows implementation |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2005 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
231 |
|
for (int i = 0; i < length; i++) { |
232 |
|
uint8 c = data[i]; |
233 |
|
if (c < 0x80) { |
234 |
+ |
if (c == 0) |
235 |
+ |
break; |
236 |
|
if (c == 13 && i < length - 1 && data[i + 1] == 10) { // CR/LF -> CR |
237 |
|
c = 13; |
238 |
|
i++; |