Mods for Wine compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -883,6 +883,7 @@ bool wxShutdown(wxShutdownFlags wFlags)
|
||||
bOK = ::OpenProcessToken(GetCurrentProcess(),
|
||||
TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,
|
||||
&hToken) != 0;
|
||||
#ifndef __WXWINE__
|
||||
if ( bOK )
|
||||
{
|
||||
TOKEN_PRIVILEGES tkp;
|
||||
@@ -901,6 +902,7 @@ bool wxShutdown(wxShutdownFlags wFlags)
|
||||
// Cannot test the return value of AdjustTokenPrivileges.
|
||||
bOK = ::GetLastError() == ERROR_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if ( bOK )
|
||||
|
Reference in New Issue
Block a user