comparison src/select-msw.c @ 4982:3c3c1d139863

Automatic merge
author Ben Wing <ben@xemacs.org>
date Fri, 05 Feb 2010 11:25:00 -0600
parents 4aebb0131297 16112448d484
children 308d34e9f07d
comparison
equal deleted inserted replaced
4981:4aebb0131297 4982:3c3c1d139863
322 322
323 if (!hValue) 323 if (!hValue)
324 { 324 {
325 CloseClipboard (); 325 CloseClipboard ();
326 326
327 xfree (src, void *); 327 xfree (src);
328 return Qnil; 328 return Qnil;
329 } 329 }
330 330
331 dst = GlobalLock (hValue); 331 dst = GlobalLock (hValue);
332 332
333 if (!dst) 333 if (!dst)
334 { 334 {
335 GlobalFree (hValue); 335 GlobalFree (hValue);
336 CloseClipboard (); 336 CloseClipboard ();
337 337
338 xfree (src, void *); 338 xfree (src);
339 return Qnil; 339 return Qnil;
340 } 340 }
341 341
342 memcpy (dst, src, size); 342 memcpy (dst, src, size);
343 xfree (src, void *); 343 xfree (src);
344 344
345 GlobalUnlock (hValue); 345 GlobalUnlock (hValue);
346 346
347 /* Empty the clipboard if we're replacing everything */ 347 /* Empty the clipboard if we're replacing everything */
348 if (NILP (how_to_add) || EQ (how_to_add, Qreplace_all)) 348 if (NILP (how_to_add) || EQ (how_to_add, Qreplace_all))