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
289437dc
Commit
289437dc
authored
Jun 10, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Remove redundant code.
parent
b853ddc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
ole_server.c
dlls/ole32/tests/ole_server.c
+2
-10
No files found.
dlls/ole32/tests/ole_server.c
View file @
289437dc
...
@@ -329,7 +329,7 @@ static HANDLE start_server(const char *argv0)
...
@@ -329,7 +329,7 @@ static HANDLE start_server(const char *argv0)
PROCESS_INFORMATION
pi
;
PROCESS_INFORMATION
pi
;
STARTUPINFO
si
;
STARTUPINFO
si
;
SECURITY_ATTRIBUTES
sa
;
SECURITY_ATTRIBUTES
sa
;
char
**
argv
,
cmdline
[
MAX_PATH
*
2
];
char
cmdline
[
MAX_PATH
*
2
];
BOOL
ret
;
BOOL
ret
;
memset
(
&
si
,
0
,
sizeof
(
si
));
memset
(
&
si
,
0
,
sizeof
(
si
));
...
@@ -343,7 +343,6 @@ static HANDLE start_server(const char *argv0)
...
@@ -343,7 +343,6 @@ static HANDLE start_server(const char *argv0)
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
bInheritHandle
=
TRUE
;
sa
.
bInheritHandle
=
TRUE
;
winetest_get_mainargs
(
&
argv
);
sprintf
(
cmdline
,
"
\"
%s
\"
ole_server -server"
,
argv0
);
sprintf
(
cmdline
,
"
\"
%s
\"
ole_server -server"
,
argv0
);
ret
=
CreateProcess
(
argv0
,
cmdline
,
NULL
,
NULL
,
TRUE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
ret
=
CreateProcess
(
argv0
,
cmdline
,
NULL
,
NULL
,
TRUE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
ok
(
ret
,
"CreateProcess(%s) error %d
\n
"
,
cmdline
,
GetLastError
());
ok
(
ret
,
"CreateProcess(%s) error %d
\n
"
,
cmdline
,
GetLastError
());
...
@@ -364,20 +363,13 @@ START_TEST(ole_server)
...
@@ -364,20 +363,13 @@ START_TEST(ole_server)
HANDLE
mapping
,
done_event
,
init_done_event
,
process
;
HANDLE
mapping
,
done_event
,
init_done_event
,
process
;
struct
winetest_info
*
info
;
struct
winetest_info
*
info
;
int
argc
;
int
argc
;
char
**
argv
,
*
argv0
,
*
ext
;
char
**
argv
;
mapping
=
CreateFileMapping
(
INVALID_HANDLE_VALUE
,
NULL
,
PAGE_READWRITE
,
0
,
4096
,
"winetest_ole_server"
);
mapping
=
CreateFileMapping
(
INVALID_HANDLE_VALUE
,
NULL
,
PAGE_READWRITE
,
0
,
4096
,
"winetest_ole_server"
);
ok
(
mapping
!=
0
,
"CreateFileMapping failed
\n
"
);
ok
(
mapping
!=
0
,
"CreateFileMapping failed
\n
"
);
info
=
MapViewOfFile
(
mapping
,
FILE_MAP_READ
|
FILE_MAP_WRITE
,
0
,
0
,
4096
);
info
=
MapViewOfFile
(
mapping
,
FILE_MAP_READ
|
FILE_MAP_WRITE
,
0
,
0
,
4096
);
argc
=
winetest_get_mainargs
(
&
argv
);
argc
=
winetest_get_mainargs
(
&
argv
);
argv0
=
strrchr
(
argv
[
0
],
'\\'
);
if
(
!
argv0
)
argv0
=
strrchr
(
argv
[
0
],
'/'
);
if
(
!
argv0
)
argv0
=
argv
[
0
];
else
argv0
++
;
argv0
=
strdup
(
argv0
);
ext
=
strrchr
(
argv0
,
'.'
);
if
(
ext
&&
!
lstrcmpi
(
ext
,
".so"
))
*
ext
=
0
;
done_event
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
"ole_server_done_event"
);
done_event
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
"ole_server_done_event"
);
ok
(
done_event
!=
0
,
"CreateEvent error %d
\n
"
,
GetLastError
());
ok
(
done_event
!=
0
,
"CreateEvent error %d
\n
"
,
GetLastError
());
...
...
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