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
2b164a2d
Commit
2b164a2d
authored
Sep 14, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Cast-qual warnings fix.
parent
a27d0aa4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
heap.c
dlls/kernel32/heap.c
+1
-1
registry16.c
dlls/kernel32/registry16.c
+1
-1
time.c
dlls/kernel32/time.c
+1
-1
volume.c
dlls/kernel32/volume.c
+1
-1
No files found.
dlls/kernel32/heap.c
View file @
2b164a2d
...
...
@@ -303,7 +303,7 @@ SIZE_T WINAPI HeapSize( HANDLE heap, DWORD flags, LPVOID ptr )
#define MAGIC_GLOBAL_USED 0x5342
#define HANDLE_TO_INTERN(h) ((PGLOBAL32_INTERN)(((char *)(h))-2))
#define INTERN_TO_HANDLE(i) ((HGLOBAL) &((i)->Pointer))
#define POINTER_TO_HANDLE(p) (*(((HGLOBAL *)(p))-2))
#define POINTER_TO_HANDLE(p) (*(((
const
HGLOBAL *)(p))-2))
#define ISHANDLE(h) (((ULONG_PTR)(h)&2)!=0)
#define ISPOINTER(h) (((ULONG_PTR)(h)&2)==0)
/* align the storage needed for the HGLOBAL on an 8byte boundary thus
...
...
dlls/kernel32/registry16.c
View file @
2b164a2d
...
...
@@ -198,7 +198,7 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
{
if
(
!
advapi32
)
init_func_ptrs
();
fix_win16_hkey
(
&
hkey
);
if
(
!
count
&&
(
type
==
REG_SZ
))
count
=
strlen
(
(
c
har
*
)
data
);
if
(
!
count
&&
(
type
==
REG_SZ
))
count
=
strlen
(
(
c
onst
char
*
)
data
);
return
pRegSetValueExA
(
hkey
,
name
,
reserved
,
type
,
data
,
count
);
}
...
...
dlls/kernel32/time.c
View file @
2b164a2d
...
...
@@ -416,7 +416,7 @@ DWORD WINAPI GetTimeZoneInformation( LPTIME_ZONE_INFORMATION tzinfo )
BOOL
WINAPI
SetTimeZoneInformation
(
const
TIME_ZONE_INFORMATION
*
tzinfo
)
{
NTSTATUS
status
;
status
=
RtlSetTimeZoneInformation
(
(
RTL_TIME_ZONE_INFORMATION
*
)
tzinfo
);
status
=
RtlSetTimeZoneInformation
(
(
const
RTL_TIME_ZONE_INFORMATION
*
)
tzinfo
);
if
(
status
!=
STATUS_SUCCESS
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
!
status
;
...
...
dlls/kernel32/volume.c
View file @
2b164a2d
...
...
@@ -375,7 +375,7 @@ static void VOLUME_GetSuperblockLabel( enum fs_type type, const BYTE *superblock
}
}
if
(
label_len
)
RtlMultiByteToUnicodeN
(
label
,
(
len
-
1
)
*
sizeof
(
WCHAR
),
&
label_len
,
(
char
*
)
label_ptr
,
label_len
);
&
label_len
,
(
LPCSTR
)
label_ptr
,
label_len
);
label_len
/=
sizeof
(
WCHAR
);
label
[
label_len
]
=
0
;
while
(
label_len
&&
label
[
label_len
-
1
]
==
' '
)
label
[
--
label_len
]
=
0
;
...
...
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