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
20e24bff
Commit
20e24bff
authored
Apr 28, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Specify the correct instance and cursor when registering a class.
parent
eba8fd0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
atl_main.c
dlls/atl/atl_main.c
+12
-4
No files found.
dlls/atl/atl_main.c
View file @
20e24bff
...
...
@@ -466,15 +466,19 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoA(_ATL_MODULEA *pm, _ATL_WNDCLASSINFOA
if
(
!
wci
->
m_wc
.
lpszClassName
)
{
s
printf
(
wci
->
m_szAutoName
,
"ATL%08lx"
,
(
UINT_PTR
)
wci
);
s
nprintf
(
wci
->
m_szAutoName
,
sizeof
(
wci
->
m_szAutoName
)
,
"ATL%08lx"
,
(
UINT_PTR
)
wci
);
TRACE
(
"auto-generated class name %s
\n
"
,
wci
->
m_szAutoName
);
wci
->
m_wc
.
lpszClassName
=
wci
->
m_szAutoName
;
}
atom
=
GetClassInfoExA
(
pm
->
m_hInst
,
wci
->
m_wc
.
lpszClassName
,
&
wc
);
if
(
!
atom
)
{
wci
->
m_wc
.
hInstance
=
pm
->
m_hInst
;
wci
->
m_wc
.
hCursor
=
LoadCursorA
(
wci
->
m_bSystemCursor
?
NULL
:
pm
->
m_hInst
,
wci
->
m_lpszCursorID
);
atom
=
RegisterClassExA
(
&
wci
->
m_wc
);
}
wci
->
pWndProc
=
wci
->
m_wc
.
lpfnWndProc
;
wci
->
m_atom
=
atom
;
}
...
...
@@ -518,15 +522,19 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
if
(
!
wci
->
m_wc
.
lpszClassName
)
{
static
const
WCHAR
szFormat
[]
=
{
'A'
,
'T'
,
'L'
,
'%'
,
'0'
,
'8'
,
'l'
,
'x'
,
0
};
s
printfW
(
wci
->
m_szAutoName
,
szFormat
,
(
UINT_PTR
)
wci
);
s
nprintfW
(
wci
->
m_szAutoName
,
sizeof
(
wci
->
m_szAutoName
)
/
sizeof
(
WCHAR
)
,
szFormat
,
(
UINT_PTR
)
wci
);
TRACE
(
"auto-generated class name %s
\n
"
,
debugstr_w
(
wci
->
m_szAutoName
));
wci
->
m_wc
.
lpszClassName
=
wci
->
m_szAutoName
;
}
atom
=
GetClassInfoExW
(
pm
->
m_hInst
,
wci
->
m_wc
.
lpszClassName
,
&
wc
);
if
(
!
atom
)
{
wci
->
m_wc
.
hInstance
=
pm
->
m_hInst
;
wci
->
m_wc
.
hCursor
=
LoadCursorW
(
wci
->
m_bSystemCursor
?
NULL
:
pm
->
m_hInst
,
wci
->
m_lpszCursorID
);
atom
=
RegisterClassExW
(
&
wci
->
m_wc
);
}
wci
->
pWndProc
=
wci
->
m_wc
.
lpfnWndProc
;
wci
->
m_atom
=
atom
;
}
...
...
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