- fix things I broke while working in linux

This commit is contained in:
Bryce Denney 2002-03-11 15:45:34 +00:00
parent 70e007b8f7
commit d82a73ed21
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: gui.cc,v 1.32 2002-03-11 15:04:58 bdenney Exp $
// $Id: gui.cc,v 1.33 2002-03-11 15:45:34 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -45,7 +45,7 @@
#include <X11/Xlib.h>
#endif
#ifdef WIN32
#ifdef WIN32
#include <windows.h>
#endif
@ -286,9 +286,9 @@ bx_gui_c::copy_handler(void)
// copy to clipboard using gui dependent code.
#ifdef WIN32
if (OpenClipboard(NULL)) {
hMem = GlobalAlloc(GMEM_ZEROINIT, txHeight*(txWidth+2)+1);
HANDLE hMem = GlobalAlloc(GMEM_ZEROINIT, len);
EmptyClipboard();
lstrcpy((char *)hMem, snapshot_txt);
lstrcpy((char *)hMem, text_snapshot);
SetClipboardData(CF_TEXT, hMem);
CloseClipboard();
GlobalFree(hMem);