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
c61f11ea
Commit
c61f11ea
authored
Sep 20, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a magic number to the WDML_CONV structure to fix some failing
tests.
parent
c5c6968e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
dde_misc.c
dlls/user/dde_misc.c
+3
-2
dde_private.h
dlls/user/dde_private.h
+3
-0
No files found.
dlls/user/dde_misc.c
View file @
c61f11ea
...
...
@@ -1742,6 +1742,7 @@ WDML_CONV* WDML_AddConv(WDML_INSTANCE* pInstance, WDML_SIDE side,
pConv
->
instance
=
pInstance
;
WDML_IncHSZ
(
pInstance
,
pConv
->
hszService
=
hszService
);
WDML_IncHSZ
(
pInstance
,
pConv
->
hszTopic
=
hszTopic
);
pConv
->
magic
=
WDML_CONV_MAGIC
;
pConv
->
hwndServer
=
hwndServer
;
pConv
->
hwndClient
=
hwndClient
;
pConv
->
transactions
=
NULL
;
...
...
@@ -1835,7 +1836,7 @@ void WDML_RemoveConv(WDML_CONV* pRef, WDML_SIDE side)
{
pPrev
->
next
=
pCurrent
->
next
;
}
pCurrent
->
magic
=
0
;
HeapFree
(
GetProcessHeap
(),
0
,
pCurrent
);
break
;
}
...
...
@@ -1913,7 +1914,7 @@ WDML_CONV* WDML_GetConv(HCONV hConv, BOOL checkConnected)
WDML_CONV
*
pConv
=
(
WDML_CONV
*
)
hConv
;
/* FIXME: should do better checking */
if
(
pConv
==
NULL
)
return
NULL
;
if
(
pConv
==
NULL
||
pConv
->
magic
!=
WDML_CONV_MAGIC
)
return
NULL
;
if
(
checkConnected
&&
!
(
pConv
->
wStatus
&
ST_CONNECTED
))
{
...
...
dlls/user/dde_private.h
View file @
c61f11ea
...
...
@@ -127,6 +127,7 @@ typedef struct tagWDML_CONV
struct
tagWDML_INSTANCE
*
instance
;
HSZ
hszService
;
/* pmt used for connection */
HSZ
hszTopic
;
/* pmt used for connection */
UINT
magic
;
/* magic number to check validity */
UINT
afCmd
;
/* service name flag */
CONVCONTEXT
convContext
;
HWND
hwndClient
;
/* source of conversation (ClientConvClass) */
...
...
@@ -137,6 +138,8 @@ typedef struct tagWDML_CONV
DWORD
wConvst
;
/* same values as convinfo.wConvst */
}
WDML_CONV
;
#define WDML_CONV_MAGIC 0xbabe1234
/* DDE_LINK struct defines hot, warm, and cold links */
typedef
struct
tagWDML_LINK
{
struct
tagWDML_LINK
*
next
;
/* to link all the active links */
...
...
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