From: Peter Åstrand Date: Tue, 9 Dec 2008 10:57:47 +0000 (+0000) Subject: MinGW tweak: takeSD must cast result from takePtr X-Git-Tag: v0.0.90~330 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ae73a3022cb31eaebc4f9fe9e4501a97133cf92;p=tigervnc.git 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 --- 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,