30 |
|
#include "debug.h" |
31 |
|
|
32 |
|
|
33 |
< |
// Flag for PutScrap(): the data was put by GetScrap(), don't bounce it back to the Be side |
33 |
> |
// Flag for PutScrap(): the data was put by GetScrap(), don't bounce it back to the MacOS X side |
34 |
|
static bool we_put_this_data = false; |
35 |
|
|
36 |
|
|
62 |
|
ScrapRef theScrap; |
63 |
|
|
64 |
|
if (GetCurrentScrap(&theScrap) != noErr) { |
65 |
< |
D(bug(" could not open scrap\n")); |
66 |
< |
return; |
65 |
> |
D(bug(" could not open scrap\n")); |
66 |
> |
return; |
67 |
|
} |
68 |
|
|
69 |
|
Size byteCount; |
108 |
|
ScrapRef theScrap; |
109 |
|
|
110 |
|
if (we_put_this_data) { |
111 |
< |
we_put_this_data = false; |
112 |
< |
return; |
111 |
> |
we_put_this_data = false; |
112 |
> |
return; |
113 |
|
} |
114 |
|
if (length <= 0) |
115 |
|
return; |