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
0028360d
Commit
0028360d
authored
Feb 19, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Use W-functions to access window property.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1881bad4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
insobjdlg.c
dlls/oledlg/insobjdlg.c
+6
-5
No files found.
dlls/oledlg/insobjdlg.c
View file @
0028360d
...
...
@@ -72,7 +72,8 @@ static void UIINSERTOBJECTDLG_AddControl(InsertObjectDlgInfo* pdlgInfo);
typedef
HRESULT
(
*
DLLREGISTER
)
(
void
);
extern
HINSTANCE
OLEDLG_hInstance
;
static
const
char
OleUIInsertObjectInfoStr
[]
=
"OleUIInsertObjectInfoStr"
;
static
const
WCHAR
OleUIInsertObjectInfoStr
[]
=
{
'O'
,
'l'
,
'e'
,
'U'
,
'I'
,
'I'
,
'n'
,
's'
,
'e'
,
'r'
,
't'
,
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
'I'
,
'n'
,
'f'
,
'o'
,
'S'
,
't'
,
'r'
,
0
};
/***********************************************************************
* OleUIInsertObjectA (OLEDLG.3)
...
...
@@ -124,7 +125,7 @@ UINT WINAPI OleUIInsertObjectA(LPOLEUIINSERTOBJECTA lpOleUIInsertObject)
*/
INT_PTR
CALLBACK
UIInsertObjectDlgProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
InsertObjectDlgInfo
*
pdlgInfo
=
GetProp
A
(
hwnd
,
OleUIInsertObjectInfoStr
);
InsertObjectDlgInfo
*
pdlgInfo
=
GetProp
W
(
hwnd
,
OleUIInsertObjectInfoStr
);
switch
(
uMsg
)
{
...
...
@@ -134,7 +135,7 @@ INT_PTR CALLBACK UIInsertObjectDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPAR
pdlgInfo
->
hwndSelf
=
hwnd
;
SetProp
A
(
hwnd
,
OleUIInsertObjectInfoStr
,
pdlgInfo
);
SetProp
W
(
hwnd
,
OleUIInsertObjectInfoStr
,
pdlgInfo
);
UIINSERTOBJECTDLG_InitDialog
(
pdlgInfo
);
...
...
@@ -147,7 +148,7 @@ INT_PTR CALLBACK UIInsertObjectDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPAR
case
WM_DESTROY
:
if
(
pdlgInfo
)
UIINSERTOBJECTDLG_FreeObjectTypes
(
pdlgInfo
);
RemoveProp
A
(
hwnd
,
OleUIInsertObjectInfoStr
);
RemoveProp
W
(
hwnd
,
OleUIInsertObjectInfoStr
);
return
FALSE
;
default
:
...
...
@@ -163,9 +164,9 @@ INT_PTR CALLBACK UIInsertObjectDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPAR
*/
static
LRESULT
UIINSOBJDLG_OnWMCommand
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
InsertObjectDlgInfo
*
pdlgInfo
=
GetPropW
(
hwnd
,
OleUIInsertObjectInfoStr
);
WORD
wNotifyCode
=
HIWORD
(
wParam
);
WORD
wID
=
LOWORD
(
wParam
);
InsertObjectDlgInfo
*
pdlgInfo
=
GetPropA
(
hwnd
,
OleUIInsertObjectInfoStr
);
switch
(
wID
)
{
...
...
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