mirror of https://github.com/bochs-emu/Bochs
- fix things I broke while working in linux
This commit is contained in:
parent
70e007b8f7
commit
d82a73ed21
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue