From 2ae73a3022cb31eaebc4f9fe9e4501a97133cf92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Tue, 9 Dec 2008 10:57:47 +0000 Subject: [PATCH] MinGW tweak: takeSD must cast result from takePtr git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3336 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/rfb_win32/Security.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/rfb_win32/Security.h b/win/rfb_win32/Security.h index 1e2e9068..15825192 100644 --- a/win/rfb_win32/Security.h +++ b/win/rfb_win32/Security.h @@ -108,7 +108,7 @@ namespace rfb { struct SecurityDescriptorPtr : LocalMem { SecurityDescriptorPtr(int size) : LocalMem(size) {} SecurityDescriptorPtr(PSECURITY_DESCRIPTOR sd_=0) : LocalMem(sd_) {} - PSECURITY_DESCRIPTOR takeSD() {return takePtr();} + PSECURITY_DESCRIPTOR takeSD() {return (PSECURITY_DESCRIPTOR)takePtr();} }; // Create a new self-relative Security Descriptor, owned by SYSTEM/Administrators, -- 2.39.5