kernel32: Cast-qual warnings fix.
This commit is contained in:
parent
a27d0aa4e9
commit
2b164a2d41
|
@ -303,7 +303,7 @@ SIZE_T WINAPI HeapSize( HANDLE heap, DWORD flags, LPVOID ptr )
|
||||||
#define MAGIC_GLOBAL_USED 0x5342
|
#define MAGIC_GLOBAL_USED 0x5342
|
||||||
#define HANDLE_TO_INTERN(h) ((PGLOBAL32_INTERN)(((char *)(h))-2))
|
#define HANDLE_TO_INTERN(h) ((PGLOBAL32_INTERN)(((char *)(h))-2))
|
||||||
#define INTERN_TO_HANDLE(i) ((HGLOBAL) &((i)->Pointer))
|
#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 ISHANDLE(h) (((ULONG_PTR)(h)&2)!=0)
|
||||||
#define ISPOINTER(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
|
/* align the storage needed for the HGLOBAL on an 8byte boundary thus
|
||||||
|
|
|
@ -198,7 +198,7 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
|
||||||
{
|
{
|
||||||
if (!advapi32) init_func_ptrs();
|
if (!advapi32) init_func_ptrs();
|
||||||
fix_win16_hkey( &hkey );
|
fix_win16_hkey( &hkey );
|
||||||
if (!count && (type==REG_SZ)) count = strlen( (char*) data);
|
if (!count && (type==REG_SZ)) count = strlen( (const char *)data );
|
||||||
return pRegSetValueExA( hkey, name, reserved, type, data, count );
|
return pRegSetValueExA( hkey, name, reserved, type, data, count );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -416,7 +416,7 @@ DWORD WINAPI GetTimeZoneInformation( LPTIME_ZONE_INFORMATION tzinfo )
|
||||||
BOOL WINAPI SetTimeZoneInformation( const TIME_ZONE_INFORMATION *tzinfo )
|
BOOL WINAPI SetTimeZoneInformation( const TIME_ZONE_INFORMATION *tzinfo )
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
status = RtlSetTimeZoneInformation( (RTL_TIME_ZONE_INFORMATION*) tzinfo );
|
status = RtlSetTimeZoneInformation( (const RTL_TIME_ZONE_INFORMATION *)tzinfo );
|
||||||
if ( status != STATUS_SUCCESS )
|
if ( status != STATUS_SUCCESS )
|
||||||
SetLastError( RtlNtStatusToDosError(status) );
|
SetLastError( RtlNtStatusToDosError(status) );
|
||||||
return !status;
|
return !status;
|
||||||
|
|
|
@ -375,7 +375,7 @@ static void VOLUME_GetSuperblockLabel( enum fs_type type, const BYTE *superblock
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (label_len) RtlMultiByteToUnicodeN( label, (len-1) * sizeof(WCHAR),
|
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_len /= sizeof(WCHAR);
|
||||||
label[label_len] = 0;
|
label[label_len] = 0;
|
||||||
while (label_len && label[label_len-1] == ' ') label[--label_len] = 0;
|
while (label_len && label[label_len-1] == ' ') label[--label_len] = 0;
|
||||||
|
|
Loading…
Reference in New Issue