http://bugs.winehq.org/show_bug.cgi?id=15976 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |focht(a)gmx.net --- Comment #1 from Anastasius Focht <focht(a)gmx.net> 2008-11-09 05:45:05 --- Hello, the problem is most likely this sequence: --- snip --- 0009:Call advapi32.LookupPrivilegeValueW(00000000,00402830,00571400) ret=0042845d 0009:trace:advapi:LookupPrivilegeValueW (null),L"SeAuditPrivilege",0x571400 0009:trace:advapi:LookupPrivilegeValueW (null) -> 00000000-00000015 0009:Ret advapi32.LookupPrivilegeValueW() retval=00000001 ret=0042845d 0009:Call advapi32.LookupPrivilegeValueW(00000000,0040280c,00571408) ret=0042845d 0009:trace:advapi:LookupPrivilegeValueW (null),L"SeBackupPrivilege",0x571408 0009:trace:advapi:LookupPrivilegeValueW (null) -> 00000000-00000011 0009:Ret advapi32.LookupPrivilegeValueW() retval=00000001 ret=0042845d 0009:Call advapi32.LookupPrivilegeValueW(00000000,004027dc,00571410) ret=0042845d 0009:trace:advapi:LookupPrivilegeValueW (null),L"SeChangeNotifyPrivilege",0x571410 0009:trace:advapi:LookupPrivilegeValueW (null) -> 00000000-00000017 0009:Ret advapi32.LookupPrivilegeValueW() retval=00000001 ret=0042845d 0009:Call advapi32.LookupPrivilegeValueW(00000000,004027ac,00571418) ret=0042845d 0009:trace:advapi:LookupPrivilegeValueW (null),L"SeCreateGlobalPrivilege",0x571418 0009:Ret advapi32.LookupPrivilegeValueW() retval=00000000 ret=0042845d 0009:Call KERNEL32.GetLastError() ret=00428470 0009:Ret KERNEL32.GetLastError() retval=00000521 ret=00428470 --- snip --- and the reason is an off-by-one error in dlls/advapi32/security.c:LookupPrivilegeValueW for( i=SE_MIN_WELL_KNOWN_PRIVILEGE; i<SE_MAX_WELL_KNOWN_PRIVILEGE; i++ ) vs. #define SE_CREATE_GLOBAL_PRIVILEGE 30L #define SE_MAX_WELL_KNOWN_PRIVILEGE SE_CREATE_GLOBAL_PRIVILEGE You might want to fix the conformance test too (exhibits the same error). And maybe some spelling stuff: SE_CHANGE_NOTIFY_PRIVILLEGE vs SE_CHANGE_NOTIFY_PRIVILEGE (global header and it's conformance test copy). Regards -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.