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
0aec2623
Commit
0aec2623
authored
Sep 04, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix some compiler warnings.
parent
572e8036
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
resource.c
dlls/kernel32/resource.c
+6
-6
No files found.
dlls/kernel32/resource.c
View file @
0aec2623
...
...
@@ -52,7 +52,7 @@ static NTSTATUS get_res_nameA( LPCSTR name, UNICODE_STRING *str )
{
if
(
!
HIWORD
(
name
))
{
str
->
Buffer
=
(
LPWSTR
)
name
;
str
->
Buffer
=
ULongToPtr
(
LOWORD
(
name
))
;
return
STATUS_SUCCESS
;
}
if
(
name
[
0
]
==
'#'
)
...
...
@@ -73,7 +73,7 @@ static NTSTATUS get_res_nameW( LPCWSTR name, UNICODE_STRING *str )
{
if
(
!
HIWORD
(
name
))
{
str
->
Buffer
=
(
LPWSTR
)
name
;
str
->
Buffer
=
ULongToPtr
(
LOWORD
(
name
))
;
return
STATUS_SUCCESS
;
}
if
(
name
[
0
]
==
'#'
)
...
...
@@ -103,7 +103,7 @@ static BOOL get_res_name_type_WtoA( LPCWSTR name, LPCWSTR type, LPSTR *nameA, LP
*
nameA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
*
nameA
)
WideCharToMultiByte
(
CP_ACP
,
0
,
name
,
-
1
,
*
nameA
,
len
,
NULL
,
NULL
);
}
else
*
nameA
=
(
LPSTR
)
name
;
else
*
nameA
=
ULongToPtr
(
LOWORD
(
name
))
;
if
(
HIWORD
(
type
))
{
...
...
@@ -111,7 +111,7 @@ static BOOL get_res_name_type_WtoA( LPCWSTR name, LPCWSTR type, LPSTR *nameA, LP
*
typeA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
*
typeA
)
WideCharToMultiByte
(
CP_ACP
,
0
,
type
,
-
1
,
*
typeA
,
len
,
NULL
,
NULL
);
}
else
*
typeA
=
(
LPSTR
)
type
;
else
*
typeA
=
ULongToPtr
(
LOWORD
(
type
))
;
}
__EXCEPT_PAGE_FAULT
{
...
...
@@ -1684,11 +1684,11 @@ BOOL WINAPI UpdateResourceA( HANDLE hUpdate, LPCSTR lpType, LPCSTR lpName,
UNICODE_STRING
TypeW
;
UNICODE_STRING
NameW
;
if
(
!
HIWORD
(
lpType
))
TypeW
.
Buffer
=
(
LPWSTR
)
lpType
;
TypeW
.
Buffer
=
ULongToPtr
(
LOWORD
(
lpType
))
;
else
RtlCreateUnicodeStringFromAsciiz
(
&
TypeW
,
lpType
);
if
(
!
HIWORD
(
lpName
))
NameW
.
Buffer
=
(
LPWSTR
)
lpName
;
NameW
.
Buffer
=
ULongToPtr
(
LOWORD
(
lpName
))
;
else
RtlCreateUnicodeStringFromAsciiz
(
&
NameW
,
lpName
);
ret
=
UpdateResourceW
(
hUpdate
,
TypeW
.
Buffer
,
NameW
.
Buffer
,
wLanguage
,
lpData
,
cbData
);
...
...
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