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
7bbba4f9
Commit
7bbba4f9
authored
Aug 26, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed calls to ConvertToGlobalHandle and MakeCriticalSectionGlobal.
parent
f9087e2b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
15 deletions
+12
-15
winedbg.c
debugger/winedbg.c
+1
-0
dinput_main.c
dlls/dinput/dinput_main.c
+0
-1
dplobby.c
dlls/dplayx/dplobby.c
+4
-9
task.c
loader/task.c
+1
-4
except.c
win32/except.c
+6
-1
No files found.
debugger/winedbg.c
View file @
7bbba4f9
...
...
@@ -816,6 +816,7 @@ int DEBUG_main(int argc, char** argv)
BOOL
ret
=
DEBUG_Attach
(
pid
,
TRUE
);
SetEvent
(
hEvent
);
CloseHandle
(
hEvent
);
if
(
!
ret
)
{
DEBUG_Printf
(
DBG_CHN_ERR
,
"Can't attach process %ld: %ld
\n
"
,
DEBUG_CurrPid
,
GetLastError
());
...
...
dlls/dinput/dinput_main.c
View file @
7bbba4f9
...
...
@@ -611,7 +611,6 @@ static HRESULT WINAPI IDirectInputAImpl_CreateDevice(
newDevice
->
ref
=
1
;
ICOM_VTBL
(
newDevice
)
=
&
SysMouseAvt
;
InitializeCriticalSection
(
&
(
newDevice
->
crit
));
MakeCriticalSectionGlobal
(
&
(
newDevice
->
crit
));
memcpy
(
&
(
newDevice
->
guid
),
rguid
,
sizeof
(
*
rguid
));
*
pdev
=
(
IDirectInputDeviceA
*
)
newDevice
;
...
...
dlls/dplayx/dplobby.c
View file @
7bbba4f9
...
...
@@ -1137,7 +1137,7 @@ BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestProcess,
LPHANDLE
lphRead
)
{
/* These are the handles for the created process */
HANDLE
hAppStart
,
hAppDeath
,
hAppRead
,
hTemp
;
HANDLE
hAppStart
,
hAppDeath
,
hAppRead
;
SECURITY_ATTRIBUTES
s_attrib
;
s_attrib
.
nLength
=
sizeof
(
s_attrib
);
...
...
@@ -1145,14 +1145,9 @@ BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestProcess,
s_attrib
.
bInheritHandle
=
TRUE
;
/* FIXME: Is there a handle leak here? */
hTemp
=
CreateEventA
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphStart
=
ConvertToGlobalHandle
(
hTemp
);
hTemp
=
CreateEventA
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphDeath
=
ConvertToGlobalHandle
(
hTemp
);
hTemp
=
CreateEventA
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphRead
=
ConvertToGlobalHandle
(
hTemp
);
*
lphStart
=
CreateEventA
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphDeath
=
CreateEventA
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphRead
=
CreateEventA
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
if
(
(
!
DuplicateHandle
(
GetCurrentProcess
(),
*
lphStart
,
hDestProcess
,
&
hAppStart
,
...
...
loader/task.c
View file @
7bbba4f9
...
...
@@ -328,13 +328,10 @@ BOOL TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, TEB *teb, LPCSTR cmdline,
/* Create scheduler event for 16-bit tasks */
if
(
!
(
pTask
->
flags
&
TDBF_WIN32
)
)
{
pTask
->
hEvent
=
CreateEventA
(
NULL
,
TRUE
,
FALSE
,
NULL
);
pTask
->
hEvent
=
ConvertToGlobalHandle
(
pTask
->
hEvent
);
}
/* Enter task handle into thread and process */
teb
->
htask16
=
hTask
;
if
(
!
initial_task
)
initial_task
=
hTask
;
...
...
win32/except.c
View file @
7bbba4f9
...
...
@@ -137,9 +137,14 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers)
HANDLE
hEvent
;
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
;
SECURITY_ATTRIBUTES
attr
;
attr
.
nLength
=
sizeof
(
attr
);
attr
.
lpSecurityDescriptor
=
NULL
;
attr
.
bInheritHandle
=
TRUE
;
TRACE
(
"Starting debugger (fmt=%s)
\n
"
,
format
);
hEvent
=
C
onvertToGlobalHandle
(
CreateEventA
(
NULL
,
FALSE
,
FALSE
,
NULL
)
);
hEvent
=
C
reateEventA
(
&
attr
,
FALSE
,
FALSE
,
NULL
);
sprintf
(
buffer
,
format
,
GetCurrentProcessId
(),
hEvent
);
memset
(
&
startup
,
0
,
sizeof
(
startup
));
startup
.
cb
=
sizeof
(
startup
);
...
...
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