From fffcdad912eee3a1128d8c3c11f5c535b002dc17 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Thu, 1 Apr 1999 14:39:55 +0000 Subject: [PATCH] Minor change for debugging --- widget/src/windows/nsDataObj.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/src/windows/nsDataObj.cpp b/widget/src/windows/nsDataObj.cpp index a6d3417d4d3e..025ae1ac3b48 100644 --- a/widget/src/windows/nsDataObj.cpp +++ b/widget/src/windows/nsDataObj.cpp @@ -377,6 +377,7 @@ HRESULT nsDataObj::GetText(nsIDataFlavor * aDF, FORMATETC& aFE, STGMEDIUM& aSTG) hGlobalMemory = (HGLOBAL)::GlobalAlloc(GHND, (DWORD)len); if (hGlobalMemory != NULL) { pGlobalMemory = (PSTR)::GlobalLock(hGlobalMemory); + PSTR pstr = pGlobalMemory; // need to use memcpy here char* s = data; @@ -386,7 +387,7 @@ HRESULT nsDataObj::GetText(nsIDataFlavor * aDF, FORMATETC& aFE, STGMEDIUM& aSTG) } // Put data on Clipboard - GlobalUnlock(hGlobalMemory); + ::GlobalUnlock(hGlobalMemory); } aSTG.hGlobal = hGlobalMemory;