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
683c53db
Commit
683c53db
authored
Dec 04, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove some superfluous casts.
parent
cf8571fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
framewnd.c
programs/regedit/framewnd.c
+1
-1
main.c
programs/regedit/main.c
+2
-2
regproc.c
programs/regedit/regproc.c
+1
-1
treeview.c
programs/regedit/treeview.c
+2
-2
No files found.
programs/regedit/framewnd.c
View file @
683c53db
...
...
@@ -89,7 +89,7 @@ static void OnEnterMenuLoop(HWND hWnd)
nParts
=
-
1
;
SendMessageW
(
hStatusBar
,
SB_SETPARTS
,
1
,
(
long
)
&
nParts
);
bInMenuLoop
=
TRUE
;
SendMessageW
(
hStatusBar
,
SB_SETTEXTW
,
(
WPARAM
)
0
,
(
LPARAM
)
&
empty
);
SendMessageW
(
hStatusBar
,
SB_SETTEXTW
,
0
,
(
LPARAM
)
&
empty
);
}
static
void
OnExitMenuLoop
(
HWND
hWnd
)
...
...
programs/regedit/main.c
View file @
683c53db
...
...
@@ -92,7 +92,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
0
/*hbrBackground*/
,
0
/*lpszMenuName*/
,
szFrameClass
,
(
HICON
)
LoadImage
(
hInstance
,
MAKEINTRESOURCE
(
IDI_REGEDIT
),
IMAGE_ICON
,
LoadImage
(
hInstance
,
MAKEINTRESOURCE
(
IDI_REGEDIT
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
)
};
ATOM
hFrameWndClass
=
RegisterClassEx
(
&
wcFrame
);
/* register frame window class */
...
...
@@ -109,7 +109,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
0
/*hbrBackground*/
,
0
/*lpszMenuName*/
,
szChildClass
,
(
HICON
)
LoadImage
(
hInstance
,
MAKEINTRESOURCE
(
IDI_REGEDIT
),
IMAGE_ICON
,
LoadImage
(
hInstance
,
MAKEINTRESOURCE
(
IDI_REGEDIT
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
)
};
...
...
programs/regedit/regproc.c
View file @
683c53db
...
...
@@ -860,7 +860,7 @@ static void REGPROC_print_error(void)
exit
(
1
);
}
puts
(
lpMsgBuf
);
LocalFree
(
(
HLOCAL
)
lpMsgBuf
);
LocalFree
(
lpMsgBuf
);
exit
(
1
);
}
...
...
programs/regedit/treeview.c
View file @
683c53db
...
...
@@ -194,7 +194,7 @@ static HTREEITEM AddEntryToTree(HWND hwndTV, HTREEITEM hParent, LPWSTR label, HK
tvins
.
u
.
item
.
iSelectedImage
=
Image_Open
;
tvins
.
u
.
item
.
cChildren
=
dwChildren
;
tvins
.
u
.
item
.
lParam
=
(
LPARAM
)
hKey
;
tvins
.
hInsertAfter
=
(
HTREEITEM
)(
hKey
?
TVI_LAST
:
TVI_SORT
)
;
tvins
.
hInsertAfter
=
hKey
?
TVI_LAST
:
TVI_SORT
;
tvins
.
hParent
=
hParent
;
return
TreeView_InsertItemW
(
hwndTV
,
&
tvins
);
...
...
@@ -533,7 +533,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPWSTR pHostName)
tvins
.
u
.
item
.
cChildren
=
5
;
/* Save the heading level in the item's application-defined data area. */
tvins
.
u
.
item
.
lParam
=
0
;
tvins
.
hInsertAfter
=
(
HTREEITEM
)
TVI_FIRST
;
tvins
.
hInsertAfter
=
TVI_FIRST
;
tvins
.
hParent
=
TVI_ROOT
;
/* Add the item to the tree view control. */
if
(
!
(
hRoot
=
TreeView_InsertItemW
(
hwndTV
,
&
tvins
)))
return
FALSE
;
...
...
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