mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
Stefan Ginsberg <stefan__100__@hotmail.com>:
- Make user32 and kernel32 compile warning-free. svn path=/trunk/; revision=34063
This commit is contained in:
parent
f99a2998d3
commit
0f6b71ad04
5 changed files with 8 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE group SYSTEM "../../../tools/rbuild/project.dtd">
|
<!DOCTYPE group SYSTEM "../../../tools/rbuild/project.dtd">
|
||||||
<group>
|
<group>
|
||||||
<module name="kernel32_base" type="objectlibrary" allowwarnings="true">
|
<module name="kernel32_base" type="objectlibrary">
|
||||||
<include base="kernel32_base">.</include>
|
<include base="kernel32_base">.</include>
|
||||||
<include base="kernel32_base">include</include>
|
<include base="kernel32_base">include</include>
|
||||||
<include base="ReactOS">include/reactos/subsys</include>
|
<include base="ReactOS">include/reactos/subsys</include>
|
||||||
|
@ -136,4 +136,4 @@
|
||||||
<linkerflag>-nostdlib</linkerflag>
|
<linkerflag>-nostdlib</linkerflag>
|
||||||
<file>kernel32.rc</file>
|
<file>kernel32.rc</file>
|
||||||
</module>
|
</module>
|
||||||
</group>
|
</group>
|
||||||
|
|
|
@ -294,7 +294,7 @@ static __inline int PROFILE_isspaceW(WCHAR c)
|
||||||
|
|
||||||
static __inline ENCODING PROFILE_DetectTextEncoding(const void * buffer, int * len)
|
static __inline ENCODING PROFILE_DetectTextEncoding(const void * buffer, int * len)
|
||||||
{
|
{
|
||||||
DWORD flags = IS_TEXT_UNICODE_SIGNATURE |
|
INT flags = IS_TEXT_UNICODE_SIGNATURE |
|
||||||
IS_TEXT_UNICODE_REVERSE_SIGNATURE |
|
IS_TEXT_UNICODE_REVERSE_SIGNATURE |
|
||||||
IS_TEXT_UNICODE_ODD_LENGTH;
|
IS_TEXT_UNICODE_ODD_LENGTH;
|
||||||
if (*len >= (int)sizeof(bom_utf8) && !memcmp(buffer, bom_utf8, sizeof(bom_utf8)))
|
if (*len >= (int)sizeof(bom_utf8) && !memcmp(buffer, bom_utf8, sizeof(bom_utf8)))
|
||||||
|
|
|
@ -37,7 +37,7 @@ _SwitchToFiber@4:
|
||||||
fstcw [eax+FIBER_CONTEXT_FLOAT_SAVE_CONTROL_WORD]
|
fstcw [eax+FIBER_CONTEXT_FLOAT_SAVE_CONTROL_WORD]
|
||||||
|
|
||||||
/* Check if the CPU supports SIMD MXCSR State Save */
|
/* Check if the CPU supports SIMD MXCSR State Save */
|
||||||
cmp byte ptr [PROCESSOR_FEATURE_FXSR], 0
|
cmp byte ptr ds:[PROCESSOR_FEATURE_FXSR], 0
|
||||||
jnz NoFpuStateSave
|
jnz NoFpuStateSave
|
||||||
stmxcsr [eax+FIBER_CONTEXT_DR6]
|
stmxcsr [eax+FIBER_CONTEXT_DR6]
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ StatusWordChanged:
|
||||||
ControlWordEqual:
|
ControlWordEqual:
|
||||||
|
|
||||||
/* Load the new one */
|
/* Load the new one */
|
||||||
cmp byte ptr [PROCESSOR_FEATURE_FXSR], 0
|
cmp byte ptr ds:[PROCESSOR_FEATURE_FXSR], 0
|
||||||
jnz NoFpuStateRestore
|
jnz NoFpuStateRestore
|
||||||
ldmxcsr [ecx+FIBER_CONTEXT_DR6]
|
ldmxcsr [ecx+FIBER_CONTEXT_DR6]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<module name="user32" type="win32dll" baseaddress="${BASEADDRESS_USER32}" installbase="system32" installname="user32.dll" allowwarnings="true" unicode="yes">
|
<module name="user32" type="win32dll" baseaddress="${BASEADDRESS_USER32}" installbase="system32" installname="user32.dll" unicode="yes">
|
||||||
<importlibrary definition="user32.def" />
|
<importlibrary definition="user32.def" />
|
||||||
<include base="user32">.</include>
|
<include base="user32">.</include>
|
||||||
<include base="user32">include</include>
|
<include base="user32">include</include>
|
||||||
|
|
|
@ -86,7 +86,7 @@ GetClipboardData(UINT uFormat)
|
||||||
/* dealing with bitmap object */
|
/* dealing with bitmap object */
|
||||||
if (uFormat != CF_BITMAP)
|
if (uFormat != CF_BITMAP)
|
||||||
{
|
{
|
||||||
size = (DWORD)NtUserGetClipboardData(uFormat, QUERY_SIZE);
|
size = (DWORD)NtUserGetClipboardData(uFormat, NULL);
|
||||||
|
|
||||||
if (size)
|
if (size)
|
||||||
{
|
{
|
||||||
|
@ -100,7 +100,7 @@ GetClipboardData(UINT uFormat)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hGlobal = NtUserGetClipboardData(CF_BITMAP, !QUERY_SIZE);
|
hGlobal = NtUserGetClipboardData(CF_BITMAP, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return hGlobal;
|
return hGlobal;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue