]> source.dussan.org Git - tigervnc.git/commitdiff
MinGW tweak: takeSD must cast result from takePtr
authorPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 10:57:47 +0000 (10:57 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 10:57:47 +0000 (10:57 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3336 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/Security.h

index 1e2e9068db40228b60e49d6d73d72763ec2f084f..15825192e08a72a8beaf8acd144d86dabf9f8b5f 100644 (file)
@@ -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,