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
2c59936f
Commit
2c59936f
authored
Feb 09, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regsvr32: Call OleInitialize before registering a DLL.
parent
e0eef69a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Makefile.in
programs/regsvr32/Makefile.in
+1
-1
regsvr32.c
programs/regsvr32/regsvr32.c
+4
-0
No files found.
programs/regsvr32/Makefile.in
View file @
2c59936f
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
regsvr32.exe
APPMODE
=
-mconsole
IMPORTS
=
kernel32
IMPORTS
=
ole32
kernel32
C_SRCS
=
\
regsvr32.c
...
...
programs/regsvr32/regsvr32.c
View file @
2c59936f
...
...
@@ -53,6 +53,7 @@
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <ole2.h>
typedef
HRESULT
(
*
DLLREGISTER
)
(
void
);
typedef
HRESULT
(
*
DLLUNREGISTER
)
(
void
);
...
...
@@ -184,6 +185,7 @@ int main(int argc, char* argv[])
WCHAR
*
wsCommandLine
=
NULL
;
WCHAR
EmptyLine
[
1
]
=
{
0
};
OleInitialize
(
NULL
);
/* Strictly, the Microsoft version processes all the flags before
* the files (e.g. regsvr32 file1 /s file2 is silent even for file1.
...
...
@@ -278,5 +280,7 @@ int main(int argc, char* argv[])
return
-
1
;
}
OleUninitialize
();
return
0
;
}
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