Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
415da293
Commit
415da293
authored
Jan 28, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peflags: add -AppContainer option
parent
930cae6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
extras/package/win32/peflags.pl
extras/package/win32/peflags.pl
+13
-5
No files found.
extras/package/win32/peflags.pl
View file @
415da293
...
...
@@ -18,12 +18,18 @@
use
warnings
;
if
(
$#ARGV
!=
0
)
{
die
"
Need exactly one argument
";
if
(
$#ARGV
<
0
||
$#ARGV
>
1
||
(
$#ARGV
==
1
&&
$ARGV
[
0
]
ne
"
-AppContainer
"))
{
die
"
Usage: peflags.pl [-AppContainer] file
";
}
my
$appContainer
=
0
;
my
$file
=
$ARGV
[
0
];
if
(
$#ARGV
==
1
&&
(
$ARGV
[
0
]
eq
"
-AppContainer
"))
{
$appContainer
=
1
;
$file
=
$ARGV
[
1
];
}
open
F
,
"
+<
$
ARGV
[0]
"
or
die
"
Can't open `
$
ARGV
[0]
'
";
open
F
,
"
+<
$
file
"
or
die
"
Can't open `
$
file
'
";
binmode
F
;
seek
F
,
0x3c
,
0
;
...
...
@@ -42,7 +48,9 @@ seek F, -2, 1;
$flags
|=
0x40
;
# Dynamic Base
$flags
|=
0x100
;
# NX Compat
$flags
|=
0x400
;
# NO SEH
#$flags |= 0x1000; # App Container
if
(
$appContainer
)
{
$flags
|=
0x1000
;
# App Container
}
printf
F
"
%c%c
",
$flags
&
0xff
,(
$flags
>>
8
)
&
0xff
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment