archrival Posted December 2, 2011 Share Posted December 2, 2011 The simple script below causes an app crash. Should this be supported or am I missing something obvious? #include <Misc.au3> #AutoIt3Wrapper_UseX64=y If _Singleton("Global\testapp", 2) = 0 Then Exit EndIf Link to comment Share on other sites More sharing options...
archrival Posted December 2, 2011 Author Share Posted December 2, 2011 FYI, I've determined it is this call: Local $aRet = DllCall("advapi32.dll", "bool", "InitializeSecurityDescriptor", _ "ptr", $pSecurityDescriptor, "dword", $SECURITY_DESCRIPTOR_REVISION) Link to comment Share on other sites More sharing options...
trancexx Posted December 3, 2011 Share Posted December 3, 2011 It's a bug. Will be fixed. Thanks. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
archrival Posted December 5, 2011 Author Share Posted December 5, 2011 Is it a bug in the UDF or the AutoIt code? If it is in the UDF I'd love to know what the fix is. Link to comment Share on other sites More sharing options...
CreepyGnome Posted December 5, 2011 Share Posted December 5, 2011 Ditto here.. having saving issue and would love to either hotfix it myself in the UDF. If its not in the UDF, then at least know when it is expected to be fixed in a release. Thanks! Link to comment Share on other sites More sharing options...
trancexx Posted December 6, 2011 Share Posted December 6, 2011 The bug was inside UDF. This was wrong:; The size of SECURITY_DESCRIPTOR is 20 bytes. We just ; need a block of memory the right size, we aren't going to ; access any members directly so it's not important what ; the members are, just that the total size is correct. Local $tSecurityDescriptor = DllStructCreate("dword[5]") It should be:Local $tSecurityDescriptor = DllStructCreate("byte;byte;word;ptr[4]") That's all. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
archrival Posted December 6, 2011 Author Share Posted December 6, 2011 That works. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now