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
ffff393e
Commit
ffff393e
authored
Nov 18, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UAC: offsetof only needs to know the field name
Don't specify the (variable) size
parent
941cff44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
extras/package/win32/NSIS/UAC/uac.cpp
extras/package/win32/NSIS/UAC/uac.cpp
+2
-2
No files found.
extras/package/win32/NSIS/UAC/uac.cpp
View file @
ffff393e
...
@@ -360,7 +360,7 @@ DWORD SyncVars(HWND hwndNSIS)
...
@@ -360,7 +360,7 @@ DWORD SyncVars(HWND hwndNSIS)
if
(
!
g
.
UseIPC
)
return
NO_ERROR
;
if
(
!
g
.
UseIPC
)
return
NO_ERROR
;
g
.
NSISStrLen
=
NSIS
::
StrSize
;
g
.
NSISStrLen
=
NSIS
::
StrSize
;
TRACEF
(
"SyncVars: g.NSISStrLen=%d
\n
"
,
g
.
NSISStrLen
);
ASSERT
(
g
.
NSISStrLen
>
10
);
TRACEF
(
"SyncVars: g.NSISStrLen=%d
\n
"
,
g
.
NSISStrLen
);
ASSERT
(
g
.
NSISStrLen
>
10
);
DWORD
cbStruct
=
FIELD_OFFSET
(
IPC_SYNCVAR
,
buf
[
g
.
NSISStrLen
+
1
]
);
DWORD
cbStruct
=
FIELD_OFFSET
(
IPC_SYNCVAR
,
buf
);
pSV
=
(
IPC_SYNCVAR
*
)
MemAlloc
(
cbStruct
);
pSV
=
(
IPC_SYNCVAR
*
)
MemAlloc
(
cbStruct
);
if
(
!
pSV
)
if
(
!
pSV
)
goto
die_GLE
;
goto
die_GLE
;
...
@@ -503,7 +503,7 @@ void HandleExecExport(bool CreateProc,bool Wait,HWND&hwndNSIS,int&StrSize,NSISCH
...
@@ -503,7 +503,7 @@ void HandleExecExport(bool CreateProc,bool Wait,HWND&hwndNSIS,int&StrSize,NSISCH
cch
+=
lstrlen
(
pSIParams
->
text
)
+
1
;
cch
+=
lstrlen
(
pSIParams
->
text
)
+
1
;
cch
+=
lstrlen
(
pSIWorkDir
->
text
)
+
1
;
cch
+=
lstrlen
(
pSIWorkDir
->
text
)
+
1
;
if
(
pSIVerb
)
cch
+=
lstrlen
(
pSIVerb
->
text
)
+
1
;
if
(
pSIVerb
)
cch
+=
lstrlen
(
pSIVerb
->
text
)
+
1
;
cbStruct
=
FIELD_OFFSET
(
IPC_SHEXEC
,
buf
[
cch
*
sizeof
(
TCHAR
)]
);
cbStruct
=
FIELD_OFFSET
(
IPC_SHEXEC
,
buf
);
pISE
=
(
IPC_SHEXEC
*
)
NSIS
::
MemAlloc
(
cbStruct
);
pISE
=
(
IPC_SHEXEC
*
)
NSIS
::
MemAlloc
(
cbStruct
);
if
(
!
pISE
)
ec
=
GetLastError
();
if
(
!
pISE
)
ec
=
GetLastError
();
if
(
!
ec
)
if
(
!
ec
)
...
...
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