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
bc4ded74
Commit
bc4ded74
authored
Aug 20, 2008
by
Vladimir Pankratov
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Converted some functions and variables to Unicode.
parent
79fadfa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
dbgchnl.c
programs/taskmgr/dbgchnl.c
+22
-19
No files found.
programs/taskmgr/dbgchnl.c
View file @
bc4ded74
...
...
@@ -4,6 +4,7 @@
* dbgchnl.c
*
* Copyright (C) 2003 - 2004 Eric Pouech
* Copyright (C) 2008 Vladimir Pankratov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -27,7 +28,6 @@
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <stdio.h>
#include <winnt.h>
#include <dbghelp.h>
...
...
@@ -61,9 +61,11 @@ BOOL AreDebugChannelsSupported(void)
{
static
HANDLE
hDbgHelp
/* = NULL */
;
static
const
WCHAR
wszDbgHelp
[]
=
{
'D'
,
'B'
,
'G'
,
'H'
,
'E'
,
'L'
,
'P'
,
'.'
,
'D'
,
'L'
,
'L'
,
0
};
if
(
hDbgHelp
)
return
TRUE
;
if
(
!
(
hDbgHelp
=
LoadLibrary
(
"dbghelp.dll"
)))
return
FALSE
;
if
(
!
(
hDbgHelp
=
LoadLibrary
W
(
wszDbgHelp
)))
return
FALSE
;
pSymSetOptions
=
(
void
*
)
GetProcAddress
(
hDbgHelp
,
"SymSetOptions"
);
pSymInitialize
=
(
void
*
)
GetProcAddress
(
hDbgHelp
,
"SymInitialize"
);
pSymLoadModule
=
(
void
*
)
GetProcAddress
(
hDbgHelp
,
"SymLoadModule"
);
...
...
@@ -221,42 +223,43 @@ static void DebugChannels_FillList(HWND hChannelLV)
static
void
DebugChannels_OnCreate
(
HWND
hwndDlg
)
{
HWND
hLV
=
GetDlgItem
(
hwndDlg
,
IDC_DEBUG_CHANNELS_LIST
);
LVCOLUMN
lvc
;
static
TCHAR
debug_channelT
[]
=
{
'D'
,
'e'
,
'b'
,
'u'
,
'g'
,
' '
,
'C'
,
'h'
,
'a'
,
'n'
,
'n'
,
'e'
,
'l'
,
0
},
fixmeT
[]
=
{
'F'
,
'i'
,
'x'
,
'm'
,
'e'
,
0
},
errT
[]
=
{
'E'
,
'r'
,
'r'
,
0
},
warnT
[]
=
{
'W'
,
'a'
,
'r'
,
'n'
,
0
},
traceT
[]
=
{
'T'
,
'r'
,
'a'
,
'c'
,
'e'
,
0
};
LVCOLUMNW
lvc
;
static
WCHAR
debug_channelW
[]
=
{
'D'
,
'e'
,
'b'
,
'u'
,
'g'
,
' '
,
'C'
,
'h'
,
'a'
,
'n'
,
'n'
,
'e'
,
'l'
,
0
},
fixmeW
[]
=
{
'F'
,
'i'
,
'x'
,
'm'
,
'e'
,
0
},
errW
[]
=
{
'E'
,
'r'
,
'r'
,
0
},
warnW
[]
=
{
'W'
,
'a'
,
'r'
,
'n'
,
0
},
traceW
[]
=
{
'T'
,
'r'
,
'a'
,
'c'
,
'e'
,
0
};
lvc
.
mask
=
LVCF_FMT
|
LVCF_TEXT
|
LVCF_WIDTH
;
lvc
.
fmt
=
LVCFMT_LEFT
;
lvc
.
pszText
=
debug_channel
T
;
lvc
.
pszText
=
debug_channel
W
;
lvc
.
cx
=
100
;
SendMessage
(
hLV
,
LVM_INSERTCOLUMN
,
0
,
(
LPARAM
)
&
lvc
);
SendMessage
W
(
hLV
,
LVM_INSERTCOLUMNW
,
0
,
(
LPARAM
)
&
lvc
);
lvc
.
mask
=
LVCF_FMT
|
LVCF_TEXT
|
LVCF_WIDTH
;
lvc
.
fmt
=
LVCFMT_CENTER
;
lvc
.
pszText
=
fixme
T
;
lvc
.
pszText
=
fixme
W
;
lvc
.
cx
=
55
;
SendMessage
(
hLV
,
LVM_INSERTCOLUMN
,
1
,
(
LPARAM
)
&
lvc
);
SendMessage
W
(
hLV
,
LVM_INSERTCOLUMNW
,
1
,
(
LPARAM
)
&
lvc
);
lvc
.
mask
=
LVCF_FMT
|
LVCF_TEXT
|
LVCF_WIDTH
;
lvc
.
fmt
=
LVCFMT_CENTER
;
lvc
.
pszText
=
err
T
;
lvc
.
pszText
=
err
W
;
lvc
.
cx
=
55
;
SendMessage
(
hLV
,
LVM_INSERTCOLUMN
,
2
,
(
LPARAM
)
&
lvc
);
SendMessage
W
(
hLV
,
LVM_INSERTCOLUMNW
,
2
,
(
LPARAM
)
&
lvc
);
lvc
.
mask
=
LVCF_FMT
|
LVCF_TEXT
|
LVCF_WIDTH
;
lvc
.
fmt
=
LVCFMT_CENTER
;
lvc
.
pszText
=
warn
T
;
lvc
.
pszText
=
warn
W
;
lvc
.
cx
=
55
;
SendMessage
(
hLV
,
LVM_INSERTCOLUMN
,
3
,
(
LPARAM
)
&
lvc
);
SendMessage
W
(
hLV
,
LVM_INSERTCOLUMNW
,
3
,
(
LPARAM
)
&
lvc
);
lvc
.
mask
=
LVCF_FMT
|
LVCF_TEXT
|
LVCF_WIDTH
;
lvc
.
fmt
=
LVCFMT_CENTER
;
lvc
.
pszText
=
trace
T
;
lvc
.
pszText
=
trace
W
;
lvc
.
cx
=
55
;
SendMessage
(
hLV
,
LVM_INSERTCOLUMN
,
4
,
(
LPARAM
)
&
lvc
);
SendMessage
W
(
hLV
,
LVM_INSERTCOLUMNW
,
4
,
(
LPARAM
)
&
lvc
);
DebugChannels_FillList
(
hLV
);
}
...
...
@@ -331,5 +334,5 @@ static INT_PTR CALLBACK DebugChannelsDlgProc(HWND hDlg, UINT message, WPARAM wPa
void
ProcessPage_OnDebugChannels
(
void
)
{
DialogBox
(
hInst
,
(
LPCT
STR
)
IDD_DEBUG_CHANNELS_DIALOG
,
hMainWnd
,
DebugChannelsDlgProc
);
DialogBox
W
(
hInst
,
(
LPCW
STR
)
IDD_DEBUG_CHANNELS_DIALOG
,
hMainWnd
,
DebugChannelsDlgProc
);
}
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