Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a391a98a
Commit
a391a98a
authored
Aug 25, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- build a standard Wine list of classes instead of using an array
- use class pointers instead of array indexes
parent
80fdebbb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
15 deletions
+16
-15
action.h
dlls/msi/action.h
+3
-2
classes.c
dlls/msi/classes.c
+0
-0
helpers.c
dlls/msi/helpers.c
+11
-11
msipriv.h
dlls/msi/msipriv.h
+1
-2
package.c
dlls/msi/package.c
+1
-0
No files found.
dlls/msi/action.h
View file @
a391a98a
...
...
@@ -133,6 +133,7 @@ typedef struct tagMSIAPPID
typedef
struct
tagMSICLASS
{
struct
list
entry
;
WCHAR
CLSID
[
IDENTIFIER_SIZE
];
/* Primary Key */
WCHAR
Context
[
IDENTIFIER_SIZE
];
/* Primary Key */
MSICOMPONENT
*
Component
;
...
...
@@ -169,7 +170,7 @@ typedef struct tagMSIPROGID
{
LPWSTR
ProgID
;
/* Primary Key */
INT
ParentIndex
;
INT
ClassIndex
;
MSICLASS
*
Class
;
LPWSTR
Description
;
LPWSTR
IconPath
;
/* not in the table, set during installation */
...
...
@@ -192,7 +193,7 @@ typedef struct tagMSIMIME
LPWSTR
ContentType
;
/* Primary Key */
INT
ExtensionIndex
;
WCHAR
CLSID
[
IDENTIFIER_SIZE
];
INT
ClassIndex
;
MSICLASS
*
Class
;
/* not in the table, set during installation */
BOOL
InstallMe
;
}
MSIMIME
;
...
...
dlls/msi/classes.c
View file @
a391a98a
This diff is collapsed.
Click to expand it.
dlls/msi/helpers.c
View file @
a391a98a
...
...
@@ -486,19 +486,19 @@ void ACTION_free_package_structures( MSIPACKAGE* package)
}
/* clean up extension, progid, class and verb structures */
for
(
i
=
0
;
i
<
package
->
loaded_classes
;
i
++
)
LIST_FOR_EACH_SAFE
(
item
,
cursor
,
&
package
->
classes
)
{
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
[
i
].
Description
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
[
i
].
FileTypeMask
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
[
i
].
IconPath
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
[
i
].
DefInprocHandler
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
[
i
].
DefInprocHandler32
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
[
i
].
Argument
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
[
i
].
ProgIDText
);
}
MSICLASS
*
cls
=
LIST_ENTRY
(
item
,
MSICLASS
,
entry
);
if
(
package
->
classes
&&
package
->
loaded_classes
>
0
)
HeapFree
(
GetProcessHeap
(),
0
,
package
->
classes
);
list_remove
(
&
cls
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
cls
->
Description
);
HeapFree
(
GetProcessHeap
(),
0
,
cls
->
FileTypeMask
);
HeapFree
(
GetProcessHeap
(),
0
,
cls
->
IconPath
);
HeapFree
(
GetProcessHeap
(),
0
,
cls
->
DefInprocHandler
);
HeapFree
(
GetProcessHeap
(),
0
,
cls
->
DefInprocHandler32
);
HeapFree
(
GetProcessHeap
(),
0
,
cls
->
Argument
);
HeapFree
(
GetProcessHeap
(),
0
,
cls
->
ProgIDText
);
}
for
(
i
=
0
;
i
<
package
->
loaded_extensions
;
i
++
)
{
...
...
dlls/msi/msipriv.h
View file @
a391a98a
...
...
@@ -192,8 +192,7 @@ typedef struct tagMSIPACKAGE
LPWSTR
ActionFormat
;
LPWSTR
LastAction
;
struct
tagMSICLASS
*
classes
;
UINT
loaded_classes
;
struct
list
classes
;
struct
tagMSIEXTENSION
*
extensions
;
UINT
loaded_extensions
;
struct
tagMSIPROGID
*
progids
;
...
...
dlls/msi/package.c
View file @
a391a98a
...
...
@@ -387,6 +387,7 @@ MSIPACKAGE *MSI_CreatePackage( MSIDATABASE *db )
package
->
next_dialog
=
NULL
;
list_init
(
&
package
->
subscriptions
);
list_init
(
&
package
->
appids
);
list_init
(
&
package
->
classes
);
/* OK, here is where we do a slew of things to the database to
* prep for all that is to come as a package */
...
...
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