Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6076485f
Commit
6076485f
authored
Jun 15, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Simplify the code.
parent
3c444ea3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
action.c
dlls/msi/action.c
+7
-17
No files found.
dlls/msi/action.c
View file @
6076485f
...
...
@@ -4587,30 +4587,20 @@ static LONG env_set_flags( LPCWSTR *name, LPWSTR *value, DWORD *flags )
static
const
WCHAR
prefix
[]
=
{
'['
,
'~'
,
']'
,
0
};
*
flags
=
0
;
while
(
*
cptr
&&
(
*
cptr
==
'='
||
*
cptr
==
'+'
||
*
cptr
==
'-'
||
*
cptr
==
'!'
||
*
cptr
==
'*'
))
while
(
*
cptr
)
{
switch
(
*
cptr
)
{
case
'='
:
if
(
*
cptr
==
'='
)
*
flags
|=
ENV_ACT_SETALWAYS
;
break
;
case
'+'
:
else
if
(
*
cptr
==
'+'
)
*
flags
|=
ENV_ACT_SETABSENT
;
break
;
case
'-'
:
else
if
(
*
cptr
==
'-'
)
*
flags
|=
ENV_ACT_REMOVE
;
break
;
case
'!'
:
else
if
(
*
cptr
==
'!'
)
*
flags
|=
ENV_ACT_REMOVEMATCH
;
break
;
case
'*'
:
else
if
(
*
cptr
==
'*'
)
*
flags
|=
ENV_MOD_MACHINE
;
else
break
;
default:
ERR
(
"Unknown Environment flag: %c
\n
"
,
*
cptr
);
return
ERROR_FUNCTION_FAILED
;
}
cptr
++
;
(
*
name
)
++
;
...
...
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