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
a96e1cef
Commit
a96e1cef
authored
Jun 02, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not loop if a ProgId's Parent Index it itself.
Add a VersionIndIndex for tracking version independent fields for the ProgIds properly.
parent
20ad4d17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
action.c
dlls/msi/action.c
+12
-8
action.h
dlls/msi/action.h
+1
-0
No files found.
dlls/msi/action.c
View file @
a96e1cef
...
...
@@ -4558,9 +4558,11 @@ static INT load_progid(MSIPACKAGE* package, MSIRECORD *row)
}
package
->
progids
[
index
].
CurVerIndex
=
-
1
;
package
->
progids
[
index
].
VersionIndIndex
=
-
1
;
/* if we have a parent then we may be that parents CurVer */
if
(
package
->
progids
[
index
].
ParentIndex
>=
0
)
if
(
package
->
progids
[
index
].
ParentIndex
>=
0
&&
package
->
progids
[
index
].
ParentIndex
!=
index
)
{
int
pindex
=
package
->
progids
[
index
].
ParentIndex
;
while
(
package
->
progids
[
pindex
].
ParentIndex
>=
0
)
...
...
@@ -4569,6 +4571,7 @@ static INT load_progid(MSIPACKAGE* package, MSIRECORD *row)
FIXME
(
"BAD BAD need to determing if we are really the CurVer
\n
"
);
package
->
progids
[
index
].
CurVerIndex
=
pindex
;
package
->
progids
[
pindex
].
VersionIndIndex
=
index
;
}
return
index
;
...
...
@@ -5441,16 +5444,17 @@ static UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
RegCloseKey
(
hkey3
);
if
(
package
->
classes
[
i
].
ProgIDIndex
>=
0
&&
package
->
progids
[
package
->
classes
[
i
].
ProgIDIndex
].
ParentIndex
>=
0
)
package
->
progids
[
package
->
classes
[
i
].
ProgIDIndex
].
VersionIndIndex
>=
0
)
{
progid
=
package
->
progids
[
package
->
progids
[
package
->
classes
[
i
].
ProgIDIndex
].
ParentIndex
].
ProgID
;
LPWSTR
viprogid
=
strdupW
(
package
->
progids
[
package
->
progids
[
package
->
classes
[
i
].
ProgIDIndex
].
VersionIndIndex
].
ProgID
);
RegCreateKeyW
(
hkey2
,
szVIProgID
,
&
hkey3
);
RegSetValueExW
(
hkey3
,
NULL
,
0
,
REG_SZ
,(
LPVOID
)
progid
,
(
strlenW
(
progid
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
hkey3
,
NULL
,
0
,
REG_SZ
,(
LPVOID
)
vi
progid
,
(
strlenW
(
vi
progid
)
+
1
)
*
sizeof
(
WCHAR
));
RegCloseKey
(
hkey3
);
HeapFree
(
GetProcessHeap
(),
0
,
viprogid
);
}
}
...
...
dlls/msi/action.h
View file @
a96e1cef
...
...
@@ -147,6 +147,7 @@ typedef struct tagMSIPROGID
/* not in the table, set during installation */
BOOL
InstallMe
;
INT
CurVerIndex
;
INT
VersionIndIndex
;
}
MSIPROGID
;
typedef
struct
tagMSIVERB
...
...
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