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
a0fee49d
Commit
a0fee49d
authored
Feb 11, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8143fb59
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
107 additions
and
107 deletions
+107
-107
Makefile.in
dlls/kernel32/Makefile.in
+1
-1
comm.c
dlls/kernel32/comm.c
+4
-4
console.c
dlls/kernel32/console.c
+9
-9
file.c
dlls/kernel32/file.c
+2
-2
heap.c
dlls/kernel32/heap.c
+2
-2
kernel_main.c
dlls/kernel32/kernel_main.c
+1
-1
lcformat.c
dlls/kernel32/lcformat.c
+17
-17
locale.c
dlls/kernel32/locale.c
+1
-1
lzexpand.c
dlls/kernel32/lzexpand.c
+1
-1
path.c
dlls/kernel32/path.c
+5
-5
process.c
dlls/kernel32/process.c
+15
-15
profile.c
dlls/kernel32/profile.c
+4
-4
resource.c
dlls/kernel32/resource.c
+14
-14
sync.c
dlls/kernel32/sync.c
+5
-5
tape.c
dlls/kernel32/tape.c
+13
-13
thread.c
dlls/kernel32/thread.c
+1
-1
toolhelp.c
dlls/kernel32/toolhelp.c
+6
-6
version.c
dlls/kernel32/version.c
+1
-1
volume.c
dlls/kernel32/volume.c
+5
-5
No files found.
dlls/kernel32/Makefile.in
View file @
a0fee49d
EXTRADEFS
=
-D
WINE_NO_LONG_TYPES
-D
_KERNEL32_
-D_NORMALIZE_
EXTRADEFS
=
-D_KERNEL32_
-D_NORMALIZE_
MODULE
=
kernel32.dll
IMPORTLIB
=
kernel32
IMPORTS
=
kernelbase ntdll winecrt0
...
...
dlls/kernel32/comm.c
View file @
a0fee49d
...
...
@@ -622,7 +622,7 @@ BOOL WINAPI SetDefaultCommConfigW(LPCWSTR lpszDevice, LPCOMMCONFIG lpCommConfig,
HMODULE
hConfigModule
;
BOOL
r
=
FALSE
;
TRACE
(
"(%s, %p, %u)
\n
"
,
debugstr_w
(
lpszDevice
),
lpCommConfig
,
dwSize
);
TRACE
(
"(%s, %p, %
l
u)
\n
"
,
debugstr_w
(
lpszDevice
),
lpCommConfig
,
dwSize
);
hConfigModule
=
LoadLibraryW
(
lpszSerialUI
);
if
(
!
hConfigModule
)
...
...
@@ -652,7 +652,7 @@ BOOL WINAPI SetDefaultCommConfigA(LPCSTR lpszDevice, LPCOMMCONFIG lpCommConfig,
LPWSTR
lpDeviceW
=
NULL
;
DWORD
len
;
TRACE
(
"(%s, %p, %u)
\n
"
,
debugstr_a
(
lpszDevice
),
lpCommConfig
,
dwSize
);
TRACE
(
"(%s, %p, %
l
u)
\n
"
,
debugstr_a
(
lpszDevice
),
lpCommConfig
,
dwSize
);
if
(
lpszDevice
)
{
...
...
@@ -687,7 +687,7 @@ BOOL WINAPI GetDefaultCommConfigW(
HMODULE
hConfigModule
;
DWORD
res
=
ERROR_INVALID_PARAMETER
;
TRACE
(
"(%s, %p, %p) *lpdwSize: %u
\n
"
,
debugstr_w
(
lpszName
),
lpCC
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
);
TRACE
(
"(%s, %p, %p) *lpdwSize: %
l
u
\n
"
,
debugstr_w
(
lpszName
),
lpCC
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
);
hConfigModule
=
LoadLibraryW
(
lpszSerialUI
);
if
(
hConfigModule
)
{
...
...
@@ -722,7 +722,7 @@ BOOL WINAPI GetDefaultCommConfigA(
BOOL
ret
=
FALSE
;
UNICODE_STRING
lpszNameW
;
TRACE
(
"(%s, %p, %p) *lpdwSize: %u
\n
"
,
debugstr_a
(
lpszName
),
lpCC
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
);
TRACE
(
"(%s, %p, %p) *lpdwSize: %
l
u
\n
"
,
debugstr_a
(
lpszName
),
lpCC
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
);
if
(
lpszName
)
RtlCreateUnicodeStringFromAsciiz
(
&
lpszNameW
,
lpszName
);
else
lpszNameW
.
Buffer
=
NULL
;
...
...
dlls/kernel32/console.c
View file @
a0fee49d
...
...
@@ -72,7 +72,7 @@ HANDLE WINAPI OpenConsoleW(LPCWSTR name, DWORD access, BOOL inherit, DWORD creat
{
SECURITY_ATTRIBUTES
sa
;
TRACE
(
"(%s, 0x%08
x, %d, %
u)
\n
"
,
debugstr_w
(
name
),
access
,
inherit
,
creation
);
TRACE
(
"(%s, 0x%08
lx, %d, %l
u)
\n
"
,
debugstr_w
(
name
),
access
,
inherit
,
creation
);
if
(
!
name
||
(
wcsicmp
(
L"CONIN$"
,
name
)
&&
wcsicmp
(
L"CONOUT$"
,
name
))
||
creation
!=
OPEN_EXISTING
)
{
...
...
@@ -221,7 +221,7 @@ BOOL WINAPI GetConsoleDisplayMode(LPDWORD lpModeFlags)
BOOL
WINAPI
SetConsoleDisplayMode
(
HANDLE
hConsoleOutput
,
DWORD
dwFlags
,
COORD
*
lpNewScreenBufferDimensions
)
{
TRACE
(
"(%p, %x, (%d, %d))
\n
"
,
hConsoleOutput
,
dwFlags
,
TRACE
(
"(%p, %
l
x, (%d, %d))
\n
"
,
hConsoleOutput
,
dwFlags
,
lpNewScreenBufferDimensions
->
X
,
lpNewScreenBufferDimensions
->
Y
);
if
(
dwFlags
==
1
)
{
...
...
@@ -242,7 +242,7 @@ BOOL WINAPI SetConsoleDisplayMode(HANDLE hConsoleOutput, DWORD dwFlags,
DWORD
WINAPI
GetConsoleAliasW
(
LPWSTR
lpSource
,
LPWSTR
lpTargetBuffer
,
DWORD
TargetBufferLength
,
LPWSTR
lpExename
)
{
FIXME
(
"(%s,%p,%d,%s): stub
\n
"
,
debugstr_w
(
lpSource
),
lpTargetBuffer
,
TargetBufferLength
,
debugstr_w
(
lpExename
));
FIXME
(
"(%s,%p,%
l
d,%s): stub
\n
"
,
debugstr_w
(
lpSource
),
lpTargetBuffer
,
TargetBufferLength
,
debugstr_w
(
lpExename
));
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
...
...
@@ -252,7 +252,7 @@ DWORD WINAPI GetConsoleAliasW(LPWSTR lpSource, LPWSTR lpTargetBuffer,
*/
DWORD
WINAPI
GetConsoleProcessList
(
LPDWORD
processlist
,
DWORD
processcount
)
{
FIXME
(
"(%p,%d): stub
\n
"
,
processlist
,
processcount
);
FIXME
(
"(%p,%
l
d): stub
\n
"
,
processlist
,
processcount
);
if
(
!
processlist
||
processcount
<
1
)
{
...
...
@@ -266,7 +266,7 @@ DWORD WINAPI GetConsoleProcessList(LPDWORD processlist, DWORD processcount)
/* Undocumented, called by native doskey.exe */
DWORD
WINAPI
GetConsoleCommandHistoryA
(
DWORD
unknown1
,
DWORD
unknown2
,
DWORD
unknown3
)
{
FIXME
(
": (0x%
x, 0x%x, 0x%
x) stub!
\n
"
,
unknown1
,
unknown2
,
unknown3
);
FIXME
(
": (0x%
lx, 0x%lx, 0x%l
x) stub!
\n
"
,
unknown1
,
unknown2
,
unknown3
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
...
...
@@ -274,7 +274,7 @@ DWORD WINAPI GetConsoleCommandHistoryA(DWORD unknown1, DWORD unknown2, DWORD unk
/* Undocumented, called by native doskey.exe */
DWORD
WINAPI
GetConsoleCommandHistoryW
(
DWORD
unknown1
,
DWORD
unknown2
,
DWORD
unknown3
)
{
FIXME
(
": (0x%
x, 0x%x, 0x%
x) stub!
\n
"
,
unknown1
,
unknown2
,
unknown3
);
FIXME
(
": (0x%
lx, 0x%lx, 0x%l
x) stub!
\n
"
,
unknown1
,
unknown2
,
unknown3
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
...
...
@@ -364,14 +364,14 @@ DWORD WINAPI GetNumberOfConsoleFonts(void)
BOOL
WINAPI
SetConsoleFont
(
HANDLE
hConsole
,
DWORD
index
)
{
FIXME
(
"(%p, %u): stub!
\n
"
,
hConsole
,
index
);
FIXME
(
"(%p, %
l
u): stub!
\n
"
,
hConsole
,
index
);
SetLastError
(
LOWORD
(
E_NOTIMPL
)
/* win10 1709+ */
);
return
FALSE
;
}
BOOL
WINAPI
SetConsoleKeyShortcuts
(
BOOL
set
,
BYTE
keys
,
VOID
*
a
,
DWORD
b
)
{
FIXME
(
": (%u %u %p %u) stub!
\n
"
,
set
,
keys
,
a
,
b
);
FIXME
(
": (%u %u %p %
l
u) stub!
\n
"
,
set
,
keys
,
a
,
b
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
@@ -476,7 +476,7 @@ COORD WINAPI GetConsoleFontSize(HANDLE hConsole, DWORD index)
BOOL
WINAPI
GetConsoleFontInfo
(
HANDLE
hConsole
,
BOOL
maximize
,
DWORD
numfonts
,
CONSOLE_FONT_INFO
*
info
)
{
FIXME
(
"(%p %d %u %p): stub!
\n
"
,
hConsole
,
maximize
,
numfonts
,
info
);
FIXME
(
"(%p %d %
l
u %p): stub!
\n
"
,
hConsole
,
maximize
,
numfonts
,
info
);
SetLastError
(
LOWORD
(
E_NOTIMPL
)
/* win10 1709+ */
);
return
FALSE
;
}
dlls/kernel32/file.c
View file @
a0fee49d
...
...
@@ -169,7 +169,7 @@ LONG WINAPI _hwrite( HFILE handle, LPCSTR buffer, LONG count )
{
DWORD
result
;
TRACE
(
"%d %p %d
\n
"
,
handle
,
buffer
,
count
);
TRACE
(
"%d %p %
l
d
\n
"
,
handle
,
buffer
,
count
);
if
(
!
count
)
{
...
...
@@ -392,7 +392,7 @@ BOOL WINAPI KERNEL32_DeviceIoControl( HANDLE handle, DWORD code, void *in_buff,
void
*
out_buff
,
DWORD
out_count
,
DWORD
*
returned
,
OVERLAPPED
*
overlapped
)
{
TRACE
(
"(%p,%#
x,%p,%d,%p,%
d,%p,%p)
\n
"
,
TRACE
(
"(%p,%#
lx,%p,%ld,%p,%l
d,%p,%p)
\n
"
,
handle
,
code
,
in_buff
,
in_count
,
out_buff
,
out_count
,
returned
,
overlapped
);
/* Check if this is a user defined control code for a VxD */
...
...
dlls/kernel32/heap.c
View file @
a0fee49d
...
...
@@ -605,8 +605,8 @@ VOID WINAPI GlobalMemoryStatus( LPMEMORYSTATUS lpBuffer )
}
#endif
TRACE
(
"Length %
u, MemoryLoad %u, TotalPhys %lx, AvailPhys %l
x,"
" TotalPageFile %
lx, AvailPageFile %lx, TotalVirtual %lx, AvailVirtual %l
x
\n
"
,
TRACE
(
"Length %
lu, MemoryLoad %lu, TotalPhys %Ix, AvailPhys %I
x,"
" TotalPageFile %
Ix, AvailPageFile %Ix, TotalVirtual %Ix, AvailVirtual %I
x
\n
"
,
lpBuffer
->
dwLength
,
lpBuffer
->
dwMemoryLoad
,
lpBuffer
->
dwTotalPhys
,
lpBuffer
->
dwAvailPhys
,
lpBuffer
->
dwTotalPageFile
,
lpBuffer
->
dwAvailPageFile
,
lpBuffer
->
dwTotalVirtual
,
lpBuffer
->
dwAvailVirtual
);
...
...
dlls/kernel32/kernel_main.c
View file @
a0fee49d
...
...
@@ -62,7 +62,7 @@ static void set_entry_point( HMODULE module, const char *name, DWORD rva )
WORD
ordinal
=
ordinals
[
pos
];
DWORD
oldprot
;
TRACE
(
"setting %s at %p to %08x
\n
"
,
name
,
&
functions
[
ordinal
],
rva
);
TRACE
(
"setting %s at %p to %08
l
x
\n
"
,
name
,
&
functions
[
ordinal
],
rva
);
VirtualProtect
(
functions
+
ordinal
,
sizeof
(
*
functions
),
PAGE_READWRITE
,
&
oldprot
);
functions
[
ordinal
]
=
rva
;
VirtualProtect
(
functions
+
ordinal
,
sizeof
(
*
functions
),
oldprot
,
&
oldprot
);
...
...
dlls/kernel32/lcformat.c
View file @
a0fee49d
...
...
@@ -135,7 +135,7 @@ static WCHAR* NLS_GetLocaleString(LCID lcid, DWORD dwFlags)
}
#define GET_LOCALE_NUMBER(num, type) num = NLS_GetLocaleNumber(lcid, type|dwFlags); \
TRACE( #type ": %
d (%08
x)\n", (DWORD)num, (DWORD)num)
TRACE( #type ": %
ld (%08l
x)\n", (DWORD)num, (DWORD)num)
#define GET_LOCALE_STRING(str, type) str = NLS_GetLocaleString(lcid, type|dwFlags); \
TRACE( #type ": %s\n", debugstr_w(str))
...
...
@@ -185,7 +185,7 @@ static const NLS_FORMAT_NODE *NLS_GetFormats(LCID lcid, DWORD dwFlags)
dwFlags
&=
LOCALE_NOUSEROVERRIDE
;
TRACE
(
"(0x%04
x,0x%08
x)
\n
"
,
lcid
,
dwFlags
);
TRACE
(
"(0x%04
lx,0x%08l
x)
\n
"
,
lcid
,
dwFlags
);
/* See if we have already cached the locales number format */
while
(
node
&&
(
node
->
lcid
!=
lcid
||
node
->
dwFlags
!=
dwFlags
)
&&
node
->
next
)
...
...
@@ -333,7 +333,7 @@ static BOOL NLS_IsUnicodeOnlyLcid(LCID lcid)
case
LANG_MARATHI
:
case
LANG_PUNJABI
:
case
LANG_SANSKRIT
:
TRACE
(
"lcid 0x%08x: langid 0x%04x is Unicode Only
\n
"
,
lcid
,
PRIMARYLANGID
(
lcid
));
TRACE
(
"lcid 0x%08
l
x: langid 0x%04x is Unicode Only
\n
"
,
lcid
,
PRIMARYLANGID
(
lcid
));
return
TRUE
;
default:
return
FALSE
;
...
...
@@ -747,7 +747,7 @@ static INT NLS_GetDateTimeFormatA(LCID lcid, DWORD dwFlags,
WCHAR
szFormat
[
128
],
szOut
[
128
];
INT
iRet
,
cchOutW
;
TRACE
(
"(0x%04
x,0x%08
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
TRACE
(
"(0x%04
lx,0x%08l
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
debugstr_a
(
lpFormat
),
lpStr
,
cchOut
);
if
((
cchOut
&&
!
lpStr
)
||
NLS_IsUnicodeOnlyLcid
(
lcid
))
...
...
@@ -826,7 +826,7 @@ static INT NLS_GetDateTimeFormatA(LCID lcid, DWORD dwFlags,
INT
WINAPI
GetDateFormatA
(
LCID
lcid
,
DWORD
dwFlags
,
const
SYSTEMTIME
*
lpTime
,
LPCSTR
lpFormat
,
LPSTR
lpDateStr
,
INT
cchOut
)
{
TRACE
(
"(0x%04
x,0x%08
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
TRACE
(
"(0x%04
lx,0x%08l
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
debugstr_a
(
lpFormat
),
lpDateStr
,
cchOut
);
return
NLS_GetDateTimeFormatA
(
lcid
,
dwFlags
|
DATE_DATEVARSONLY
,
lpTime
,
...
...
@@ -858,7 +858,7 @@ INT WINAPI GetDateFormatEx(LPCWSTR localename, DWORD flags,
const
SYSTEMTIME
*
date
,
LPCWSTR
format
,
LPWSTR
outbuf
,
INT
bufsize
,
LPCWSTR
calendar
)
{
TRACE
(
"(%s,0x%08x,%p,%s,%p,%d,%s)
\n
"
,
debugstr_w
(
localename
),
flags
,
TRACE
(
"(%s,0x%08
l
x,%p,%s,%p,%d,%s)
\n
"
,
debugstr_w
(
localename
),
flags
,
date
,
debugstr_w
(
format
),
outbuf
,
bufsize
,
debugstr_w
(
calendar
));
/* Parameter is currently reserved and Windows errors if set */
...
...
@@ -881,7 +881,7 @@ INT WINAPI GetDateFormatEx(LPCWSTR localename, DWORD flags,
INT
WINAPI
GetDateFormatW
(
LCID
lcid
,
DWORD
dwFlags
,
const
SYSTEMTIME
*
lpTime
,
LPCWSTR
lpFormat
,
LPWSTR
lpDateStr
,
INT
cchOut
)
{
TRACE
(
"(0x%04
x,0x%08
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
TRACE
(
"(0x%04
lx,0x%08l
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
debugstr_w
(
lpFormat
),
lpDateStr
,
cchOut
);
return
NLS_GetDateTimeFormatW
(
lcid
,
dwFlags
|
DATE_DATEVARSONLY
,
lpTime
,
...
...
@@ -932,7 +932,7 @@ INT WINAPI GetDateFormatW(LCID lcid, DWORD dwFlags, const SYSTEMTIME* lpTime,
INT
WINAPI
GetTimeFormatA
(
LCID
lcid
,
DWORD
dwFlags
,
const
SYSTEMTIME
*
lpTime
,
LPCSTR
lpFormat
,
LPSTR
lpTimeStr
,
INT
cchOut
)
{
TRACE
(
"(0x%04
x,0x%08
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
TRACE
(
"(0x%04
lx,0x%08l
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
debugstr_a
(
lpFormat
),
lpTimeStr
,
cchOut
);
return
NLS_GetDateTimeFormatA
(
lcid
,
dwFlags
|
TIME_TIMEVARSONLY
,
lpTime
,
...
...
@@ -963,7 +963,7 @@ INT WINAPI GetTimeFormatEx(LPCWSTR localename, DWORD flags,
const
SYSTEMTIME
*
time
,
LPCWSTR
format
,
LPWSTR
outbuf
,
INT
bufsize
)
{
TRACE
(
"(%s,0x%08x,%p,%s,%p,%d)
\n
"
,
debugstr_w
(
localename
),
flags
,
time
,
TRACE
(
"(%s,0x%08
l
x,%p,%s,%p,%d)
\n
"
,
debugstr_w
(
localename
),
flags
,
time
,
debugstr_w
(
format
),
outbuf
,
bufsize
);
return
NLS_GetDateTimeFormatW
(
LocaleNameToLCID
(
localename
,
0
),
...
...
@@ -979,7 +979,7 @@ INT WINAPI GetTimeFormatEx(LPCWSTR localename, DWORD flags,
INT
WINAPI
GetTimeFormatW
(
LCID
lcid
,
DWORD
dwFlags
,
const
SYSTEMTIME
*
lpTime
,
LPCWSTR
lpFormat
,
LPWSTR
lpTimeStr
,
INT
cchOut
)
{
TRACE
(
"(0x%04
x,0x%08
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
TRACE
(
"(0x%04
lx,0x%08l
x,%p,%s,%p,%d)
\n
"
,
lcid
,
dwFlags
,
lpTime
,
debugstr_w
(
lpFormat
),
lpTimeStr
,
cchOut
);
return
NLS_GetDateTimeFormatW
(
lcid
,
dwFlags
|
TIME_TIMEVARSONLY
,
lpTime
,
...
...
@@ -1023,7 +1023,7 @@ INT WINAPI GetNumberFormatA(LCID lcid, DWORD dwFlags,
const
NUMBERFMTW
*
pfmt
=
NULL
;
INT
iRet
;
TRACE
(
"(0x%04
x,0x%08
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_a
(
lpszValue
),
TRACE
(
"(0x%04
lx,0x%08l
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_a
(
lpszValue
),
lpFormat
,
lpNumberStr
,
cchOut
);
if
(
NLS_IsUnicodeOnlyLcid
(
lcid
))
...
...
@@ -1105,7 +1105,7 @@ INT WINAPI GetNumberFormatW(LCID lcid, DWORD dwFlags,
DWORD
dwState
=
0
,
dwDecimals
=
0
,
dwGroupCount
=
0
,
dwCurrentGroupCount
=
0
;
INT
iRet
;
TRACE
(
"(0x%04
x,0x%08
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_w
(
lpszValue
),
TRACE
(
"(0x%04
lx,0x%08l
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_w
(
lpszValue
),
lpFormat
,
lpNumberStr
,
cchOut
);
if
(
!
lpszValue
||
cchOut
<
0
||
(
cchOut
>
0
&&
!
lpNumberStr
)
||
...
...
@@ -1340,7 +1340,7 @@ INT WINAPI GetNumberFormatEx(LPCWSTR name, DWORD flags,
{
LCID
lcid
;
TRACE
(
"(%s,0x%08x,%s,%p,%p,%d)
\n
"
,
debugstr_w
(
name
),
flags
,
TRACE
(
"(%s,0x%08
l
x,%s,%p,%p,%d)
\n
"
,
debugstr_w
(
name
),
flags
,
debugstr_w
(
value
),
format
,
number
,
numout
);
lcid
=
LocaleNameToLCID
(
name
,
0
);
...
...
@@ -1387,7 +1387,7 @@ INT WINAPI GetCurrencyFormatA(LCID lcid, DWORD dwFlags,
const
CURRENCYFMTW
*
pfmt
=
NULL
;
INT
iRet
;
TRACE
(
"(0x%04
x,0x%08
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_a
(
lpszValue
),
TRACE
(
"(0x%04
lx,0x%08l
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_a
(
lpszValue
),
lpFormat
,
lpCurrencyStr
,
cchOut
);
if
(
NLS_IsUnicodeOnlyLcid
(
lcid
))
...
...
@@ -1495,7 +1495,7 @@ INT WINAPI GetCurrencyFormatW(LCID lcid, DWORD dwFlags,
DWORD
dwState
=
0
,
dwDecimals
=
0
,
dwGroupCount
=
0
,
dwCurrentGroupCount
=
0
,
dwFmt
;
INT
iRet
;
TRACE
(
"(0x%04
x,0x%08
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_w
(
lpszValue
),
TRACE
(
"(0x%04
lx,0x%08l
x,%s,%p,%p,%d)
\n
"
,
lcid
,
dwFlags
,
debugstr_w
(
lpszValue
),
lpFormat
,
lpCurrencyStr
,
cchOut
);
if
(
!
lpszValue
||
cchOut
<
0
||
(
cchOut
>
0
&&
!
lpCurrencyStr
)
||
...
...
@@ -1749,7 +1749,7 @@ error:
int
WINAPI
GetCurrencyFormatEx
(
LPCWSTR
localename
,
DWORD
flags
,
LPCWSTR
value
,
const
CURRENCYFMTW
*
format
,
LPWSTR
str
,
int
len
)
{
TRACE
(
"(%s,0x%08x,%s,%p,%p,%d)
\n
"
,
debugstr_w
(
localename
),
flags
,
TRACE
(
"(%s,0x%08
l
x,%s,%p,%p,%d)
\n
"
,
debugstr_w
(
localename
),
flags
,
debugstr_w
(
value
),
format
,
str
,
len
);
return
GetCurrencyFormatW
(
LocaleNameToLCID
(
localename
,
0
),
flags
,
value
,
format
,
str
,
len
);
...
...
@@ -1785,6 +1785,6 @@ int WINAPI GetCalendarInfoA( LCID lcid, CALID id, CALTYPE type, LPSTR data, int
*/
int
WINAPI
SetCalendarInfoA
(
LCID
lcid
,
CALID
id
,
CALTYPE
type
,
LPCSTR
data
)
{
FIXME
(
"(%08
x,%08x,%08
x,%s): stub
\n
"
,
lcid
,
id
,
type
,
debugstr_a
(
data
));
FIXME
(
"(%08
lx,%08lx,%08l
x,%s): stub
\n
"
,
lcid
,
id
,
type
,
debugstr_a
(
data
));
return
0
;
}
dlls/kernel32/locale.c
View file @
a0fee49d
...
...
@@ -384,7 +384,7 @@ INT WINAPI GetGeoInfoA(GEOID geoid, GEOTYPE geotype, LPSTR data, int data_len, L
WCHAR
*
buffW
;
INT
len
;
TRACE
(
"%
d %
d %p %d %d
\n
"
,
geoid
,
geotype
,
data
,
data_len
,
lang
);
TRACE
(
"%
ld %l
d %p %d %d
\n
"
,
geoid
,
geotype
,
data
,
data_len
,
lang
);
len
=
GetGeoInfoW
(
geoid
,
geotype
,
NULL
,
0
,
lang
);
if
(
!
len
)
...
...
dlls/kernel32/lzexpand.c
View file @
a0fee49d
...
...
@@ -416,7 +416,7 @@ LONG WINAPI LZSeek( HFILE fd, LONG off, INT type )
struct
lzstate
*
lzs
;
LONG
newwanted
;
TRACE
(
"(%d,%d,%d)
\n
"
,
fd
,
off
,
type
);
TRACE
(
"(%d,%
l
d,%d)
\n
"
,
fd
,
off
,
type
);
/* not compressed? just use normal _llseek() */
if
(
!
(
lzs
=
GET_LZ_STATE
(
fd
)))
return
_llseek
(
fd
,
off
,
type
);
newwanted
=
lzs
->
realwanted
;
...
...
dlls/kernel32/path.c
View file @
a0fee49d
...
...
@@ -143,7 +143,7 @@ BOOL WINAPI CopyFileExA(LPCSTR sourceFilename, LPCSTR destFilename,
*/
BOOL
WINAPI
MoveFileTransactedA
(
const
char
*
source
,
const
char
*
dest
,
LPPROGRESS_ROUTINE
progress
,
void
*
data
,
DWORD
flags
,
HANDLE
handle
)
{
FIXME
(
"(%s, %s, %p, %p, %d, %p)
\n
"
,
debugstr_a
(
source
),
debugstr_a
(
dest
),
progress
,
data
,
flags
,
handle
);
FIXME
(
"(%s, %s, %p, %p, %
l
d, %p)
\n
"
,
debugstr_a
(
source
),
debugstr_a
(
dest
),
progress
,
data
,
flags
,
handle
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
@@ -153,7 +153,7 @@ BOOL WINAPI MoveFileTransactedA(const char *source, const char *dest, LPPROGRESS
*/
BOOL
WINAPI
MoveFileTransactedW
(
const
WCHAR
*
source
,
const
WCHAR
*
dest
,
LPPROGRESS_ROUTINE
progress
,
void
*
data
,
DWORD
flags
,
HANDLE
handle
)
{
FIXME
(
"(%s, %s, %p, %p, %d, %p)
\n
"
,
debugstr_w
(
source
),
debugstr_w
(
dest
),
progress
,
data
,
flags
,
handle
);
FIXME
(
"(%s, %s, %p, %p, %
l
d, %p)
\n
"
,
debugstr_w
(
source
),
debugstr_w
(
dest
),
progress
,
data
,
flags
,
handle
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
@@ -352,7 +352,7 @@ WCHAR * CDECL wine_get_dos_file_name( LPCSTR str )
*/
BOOLEAN
WINAPI
CreateSymbolicLinkA
(
LPCSTR
link
,
LPCSTR
target
,
DWORD
flags
)
{
FIXME
(
"(%s %s %d): stub
\n
"
,
debugstr_a
(
link
),
debugstr_a
(
target
),
flags
);
FIXME
(
"(%s %s %
l
d): stub
\n
"
,
debugstr_a
(
link
),
debugstr_a
(
target
),
flags
);
return
TRUE
;
}
...
...
@@ -384,7 +384,7 @@ BOOL WINAPI CheckNameLegalDOS8Dot3A(const char *name, char *oemname, DWORD oemna
{
WCHAR
*
nameW
;
TRACE
(
"(%s %p %u %p %p)
\n
"
,
name
,
oemname
,
TRACE
(
"(%s %p %
l
u %p %p)
\n
"
,
name
,
oemname
,
oemname_len
,
contains_spaces
,
is_legal
);
if
(
!
name
||
!
is_legal
)
...
...
@@ -405,7 +405,7 @@ BOOL WINAPI CheckNameLegalDOS8Dot3W(const WCHAR *name, char *oemname, DWORD oemn
UNICODE_STRING
nameW
;
BOOLEAN
contains_spaces
;
TRACE
(
"(%s %p %u %p %p)
\n
"
,
wine_dbgstr_w
(
name
),
oemname
,
TRACE
(
"(%s %p %
l
u %p %p)
\n
"
,
wine_dbgstr_w
(
name
),
oemname
,
oemname_len
,
contains_spaces_ret
,
is_legal
);
if
(
!
name
||
!
is_legal
)
...
...
dlls/kernel32/process.c
View file @
a0fee49d
...
...
@@ -104,7 +104,7 @@ UINT WINAPI DECLSPEC_HOTPATCH WinExec( LPCSTR lpCmdLine, UINT nCmdShow )
{
/* Give 30 seconds to the app to come up */
if
(
wait_input_idle
(
info
.
hProcess
,
30000
)
==
WAIT_FAILED
)
WARN
(
"WaitForInputIdle failed: Error %d
\n
"
,
GetLastError
()
);
WARN
(
"WaitForInputIdle failed: Error %
l
d
\n
"
,
GetLastError
()
);
ret
=
33
;
/* Close off the handles */
CloseHandle
(
info
.
hThread
);
...
...
@@ -162,7 +162,7 @@ DWORD WINAPI LoadModule( LPCSTR name, LPVOID paramBlock )
{
/* Give 30 seconds to the app to come up */
if
(
wait_input_idle
(
info
.
hProcess
,
30000
)
==
WAIT_FAILED
)
WARN
(
"WaitForInputIdle failed: Error %d
\n
"
,
GetLastError
()
);
WARN
(
"WaitForInputIdle failed: Error %
l
d
\n
"
,
GetLastError
()
);
ret
=
33
;
/* Close off the handles */
CloseHandle
(
info
.
hThread
);
...
...
@@ -170,7 +170,7 @@ DWORD WINAPI LoadModule( LPCSTR name, LPVOID paramBlock )
}
else
if
((
ret
=
GetLastError
())
>=
32
)
{
FIXME
(
"Strange error set by CreateProcess: %u
\n
"
,
ret
);
FIXME
(
"Strange error set by CreateProcess: %
l
u
\n
"
,
ret
);
ret
=
11
;
}
...
...
@@ -281,7 +281,7 @@ HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc)
*/
BOOL
WINAPI
SetHandleContext
(
HANDLE
hnd
,
DWORD
context
)
{
FIXME
(
"(%p,%d), stub. In case this got called by WSOCK32/WS2_32: "
FIXME
(
"(%p,%
l
d), stub. In case this got called by WSOCK32/WS2_32: "
"the external WINSOCK DLLs won't work with WINE, don't use them.
\n
"
,
hnd
,
context
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
...
...
@@ -420,7 +420,7 @@ HANDLE WINAPI DECLSPEC_HOTPATCH CreateActCtxA( const ACTCTXA *actctx )
HANDLE
ret
=
INVALID_HANDLE_VALUE
;
LPWSTR
src
=
NULL
,
assdir
=
NULL
,
resname
=
NULL
,
appname
=
NULL
;
TRACE
(
"%p %08x
\n
"
,
actctx
,
actctx
?
actctx
->
dwFlags
:
0
);
TRACE
(
"%p %08
l
x
\n
"
,
actctx
,
actctx
?
actctx
->
dwFlags
:
0
);
if
(
!
actctx
||
actctx
->
cbSize
!=
sizeof
(
*
actctx
))
{
...
...
@@ -494,7 +494,7 @@ BOOL WINAPI FindActCtxSectionStringA( DWORD flags, const GUID *guid, ULONG id, c
DWORD
len
;
BOOL
ret
;
TRACE
(
"%08
x %s %
u %s %p
\n
"
,
flags
,
debugstr_guid
(
guid
),
id
,
debugstr_a
(
search
),
info
);
TRACE
(
"%08
lx %s %l
u %s %p
\n
"
,
flags
,
debugstr_guid
(
guid
),
id
,
debugstr_a
(
search
),
info
);
if
(
!
search
||
!
info
)
{
...
...
@@ -533,7 +533,7 @@ BOOL WINAPI CmdBatNotification( BOOL bBatchRunning )
*/
HRESULT
WINAPI
RegisterApplicationRestart
(
PCWSTR
pwzCommandLine
,
DWORD
dwFlags
)
{
FIXME
(
"(%s,%d)
\n
"
,
debugstr_w
(
pwzCommandLine
),
dwFlags
);
FIXME
(
"(%s,%
l
d)
\n
"
,
debugstr_w
(
pwzCommandLine
),
dwFlags
);
return
S_OK
;
}
...
...
@@ -564,7 +564,7 @@ BOOL WINAPI SetProcessDEPPolicy( DWORD flags )
{
ULONG
dep_flags
=
0
;
TRACE
(
"%#x
\n
"
,
flags
);
TRACE
(
"%#
l
x
\n
"
,
flags
);
if
(
flags
&
PROCESS_DEP_ENABLE
)
dep_flags
|=
MEM_EXECUTE_OPTION_DISABLE
|
MEM_EXECUTE_OPTION_PERMANENT
;
...
...
@@ -599,7 +599,7 @@ HRESULT WINAPI ApplicationRecoveryInProgress(PBOOL canceled)
*/
HRESULT
WINAPI
RegisterApplicationRecoveryCallback
(
APPLICATION_RECOVERY_CALLBACK
callback
,
PVOID
param
,
DWORD
pingint
,
DWORD
flags
)
{
FIXME
(
"%p, %p, %
d, %
d: stub, faking success
\n
"
,
callback
,
param
,
pingint
,
flags
);
FIXME
(
"%p, %p, %
ld, %l
d: stub, faking success
\n
"
,
callback
,
param
,
pingint
,
flags
);
return
S_OK
;
}
...
...
@@ -715,7 +715,7 @@ WORD WINAPI GetMaximumProcessorGroupCount(void)
*/
DWORD
WINAPI
GetFirmwareEnvironmentVariableA
(
LPCSTR
name
,
LPCSTR
guid
,
PVOID
buffer
,
DWORD
size
)
{
FIXME
(
"stub: %s %s %p %u
\n
"
,
debugstr_a
(
name
),
debugstr_a
(
guid
),
buffer
,
size
);
FIXME
(
"stub: %s %s %p %
l
u
\n
"
,
debugstr_a
(
name
),
debugstr_a
(
guid
),
buffer
,
size
);
SetLastError
(
ERROR_INVALID_FUNCTION
);
return
0
;
}
...
...
@@ -725,7 +725,7 @@ DWORD WINAPI GetFirmwareEnvironmentVariableA(LPCSTR name, LPCSTR guid, PVOID buf
*/
DWORD
WINAPI
GetFirmwareEnvironmentVariableW
(
LPCWSTR
name
,
LPCWSTR
guid
,
PVOID
buffer
,
DWORD
size
)
{
FIXME
(
"stub: %s %s %p %u
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
guid
),
buffer
,
size
);
FIXME
(
"stub: %s %s %p %
l
u
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
guid
),
buffer
,
size
);
SetLastError
(
ERROR_INVALID_FUNCTION
);
return
0
;
}
...
...
@@ -735,7 +735,7 @@ DWORD WINAPI GetFirmwareEnvironmentVariableW(LPCWSTR name, LPCWSTR guid, PVOID b
*/
BOOL
WINAPI
SetFirmwareEnvironmentVariableW
(
const
WCHAR
*
name
,
const
WCHAR
*
guid
,
void
*
buffer
,
DWORD
size
)
{
FIXME
(
"stub: %s %s %p %u
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
guid
),
buffer
,
size
);
FIXME
(
"stub: %s %s %p %
l
u
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
guid
),
buffer
,
size
);
SetLastError
(
ERROR_INVALID_FUNCTION
);
return
FALSE
;
}
...
...
@@ -887,7 +887,7 @@ BOOL WINAPI DeleteUmsThreadContext(PUMS_CONTEXT ctx)
*/
BOOL
WINAPI
DequeueUmsCompletionListItems
(
void
*
list
,
DWORD
timeout
,
PUMS_CONTEXT
*
ctx
)
{
FIXME
(
"%p,%08x,%p: stub
\n
"
,
list
,
timeout
,
ctx
);
FIXME
(
"%p,%08
l
x,%p: stub
\n
"
,
list
,
timeout
,
ctx
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
@@ -948,7 +948,7 @@ BOOL WINAPI GetUmsCompletionListEvent(PUMS_COMPLETION_LIST list, HANDLE *event)
BOOL
WINAPI
QueryUmsThreadInformation
(
PUMS_CONTEXT
ctx
,
UMS_THREAD_INFO_CLASS
class
,
void
*
buf
,
ULONG
length
,
ULONG
*
ret_length
)
{
FIXME
(
"%p,%08x,%p,%08x,%p: stub
\n
"
,
ctx
,
class
,
buf
,
length
,
ret_length
);
FIXME
(
"%p,%08x,%p,%08
l
x,%p: stub
\n
"
,
ctx
,
class
,
buf
,
length
,
ret_length
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
@@ -959,7 +959,7 @@ BOOL WINAPI QueryUmsThreadInformation(PUMS_CONTEXT ctx, UMS_THREAD_INFO_CLASS cl
BOOL
WINAPI
SetUmsThreadInformation
(
PUMS_CONTEXT
ctx
,
UMS_THREAD_INFO_CLASS
class
,
void
*
buf
,
ULONG
length
)
{
FIXME
(
"%p,%08x,%p,%08x: stub
\n
"
,
ctx
,
class
,
buf
,
length
);
FIXME
(
"%p,%08x,%p,%08
l
x: stub
\n
"
,
ctx
,
class
,
buf
,
length
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
dlls/kernel32/profile.c
View file @
a0fee49d
...
...
@@ -322,7 +322,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding)
if
(
!
ReadFile
(
hFile
,
buffer_base
,
dwFileSize
,
&
dwFileSize
,
NULL
))
{
HeapFree
(
GetProcessHeap
(),
0
,
buffer_base
);
WARN
(
"Error %d reading file
\n
"
,
GetLastError
());
WARN
(
"Error %
l
d reading file
\n
"
,
GetLastError
());
return
NULL
;
}
len
=
dwFileSize
;
...
...
@@ -641,7 +641,7 @@ static BOOL PROFILE_FlushFile(void)
if
(
hFile
==
INVALID_HANDLE_VALUE
)
{
WARN
(
"could not save profile file %s (error was %d)
\n
"
,
debugstr_w
(
CurProfile
->
filename
),
GetLastError
());
WARN
(
"could not save profile file %s (error was %
l
d)
\n
"
,
debugstr_w
(
CurProfile
->
filename
),
GetLastError
());
return
FALSE
;
}
...
...
@@ -747,7 +747,7 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
if
((
hFile
==
INVALID_HANDLE_VALUE
)
&&
(
GetLastError
()
!=
ERROR_FILE_NOT_FOUND
))
{
WARN
(
"Error %d opening file %s
\n
"
,
GetLastError
(),
debugstr_w
(
buffer
));
WARN
(
"Error %
l
d opening file %s
\n
"
,
GetLastError
(),
debugstr_w
(
buffer
));
return
FALSE
;
}
...
...
@@ -1563,7 +1563,7 @@ INT WINAPI GetPrivateProfileSectionW( LPCWSTR section, LPWSTR buffer,
return
0
;
}
TRACE
(
"(%s, %p, %d, %s)
\n
"
,
debugstr_w
(
section
),
buffer
,
len
,
debugstr_w
(
filename
));
TRACE
(
"(%s, %p, %
l
d, %s)
\n
"
,
debugstr_w
(
section
),
buffer
,
len
,
debugstr_w
(
filename
));
return
get_section
(
filename
,
section
,
buffer
,
len
,
TRUE
);
}
...
...
dlls/kernel32/resource.c
View file @
a0fee49d
...
...
@@ -464,7 +464,7 @@ static BOOL check_pe_exe( HANDLE file, QUEUEDUPDATES *updates )
if
(
nt
->
OptionalHeader
.
Magic
==
IMAGE_NT_OPTIONAL_HDR64_MAGIC
)
dd
=
&
nt64
->
OptionalHeader
.
DataDirectory
[
0
];
TRACE
(
"resources: %08
x %08
x
\n
"
,
TRACE
(
"resources: %08
lx %08l
x
\n
"
,
dd
[
IMAGE_DIRECTORY_ENTRY_RESOURCE
].
VirtualAddress
,
dd
[
IMAGE_DIRECTORY_ENTRY_RESOURCE
].
Size
);
...
...
@@ -639,7 +639,7 @@ static BOOL read_mapped_resources( QUEUEDUPDATES *updates, void *base, DWORD map
(
sec
[
i
].
PointerToRawData
+
sec
[
i
].
SizeOfRawData
)
>
mapping_size
)
return
TRUE
;
TRACE
(
"found .rsrc at %08
x, size %08
x
\n
"
,
sec
[
i
].
PointerToRawData
,
sec
[
i
].
SizeOfRawData
);
TRACE
(
"found .rsrc at %08
lx, size %08l
x
\n
"
,
sec
[
i
].
PointerToRawData
,
sec
[
i
].
SizeOfRawData
);
if
(
!
sec
[
i
].
PointerToRawData
||
sec
[
i
].
SizeOfRawData
<
sizeof
(
IMAGE_RESOURCE_DIRECTORY
))
return
TRUE
;
...
...
@@ -726,7 +726,7 @@ static BOOL resize_mapping( struct mapping_info *mi, DWORD new_size )
SetFilePointer
(
mi
->
file
,
new_size
,
NULL
,
FILE_BEGIN
);
if
(
!
SetEndOfFile
(
mi
->
file
))
{
ERR
(
"failed to set file size to %08x
\n
"
,
new_size
);
ERR
(
"failed to set file size to %08
l
x
\n
"
,
new_size
);
return
FALSE
;
}
...
...
@@ -784,7 +784,7 @@ static void get_resource_sizes( QUEUEDUPDATES *updates, struct resource_size_inf
si
->
total_size
=
si
->
data_ofs
+
data_size
;
TRACE
(
"names %08
x langs %08x data entries %08x strings %08x data %08x total %08
x
\n
"
,
TRACE
(
"names %08
lx langs %08lx data entries %08lx strings %08lx data %08lx total %08l
x
\n
"
,
si
->
names_ofs
,
si
->
langs_ofs
,
si
->
data_entry_ofs
,
si
->
strings_ofs
,
si
->
data_ofs
,
si
->
total_size
);
}
...
...
@@ -806,7 +806,7 @@ static BOOL write_resources( QUEUEDUPDATES *updates, LPBYTE base, struct resourc
struct
resource_data
*
data
;
IMAGE_RESOURCE_DIRECTORY
*
root
;
TRACE
(
"%p %p %p %08x
\n
"
,
updates
,
base
,
si
,
rva
);
TRACE
(
"%p %p %p %08
l
x
\n
"
,
updates
,
base
,
si
,
rva
);
memset
(
base
,
0
,
si
->
total_size
);
...
...
@@ -974,7 +974,7 @@ static DWORD get_init_data_size( void *base, DWORD mapping_size )
if
(
s
[
i
].
Characteristics
&
IMAGE_SCN_CNT_INITIALIZED_DATA
)
sz
+=
s
[
i
].
SizeOfRawData
;
TRACE
(
"size = %08x
\n
"
,
sz
);
TRACE
(
"size = %08
l
x
\n
"
,
sz
);
return
sz
;
}
...
...
@@ -1040,13 +1040,13 @@ static BOOL write_raw_resources( QUEUEDUPDATES *updates )
if
((
LONG
)
PeSectionAlignment
<=
0
)
{
ERR
(
"invalid section alignment %08x
\n
"
,
PeSectionAlignment
);
ERR
(
"invalid section alignment %08
l
x
\n
"
,
PeSectionAlignment
);
goto
done
;
}
if
((
LONG
)
PeFileAlignment
<=
0
)
{
ERR
(
"invalid file alignment %08x
\n
"
,
PeFileAlignment
);
ERR
(
"invalid file alignment %08
l
x
\n
"
,
PeFileAlignment
);
goto
done
;
}
...
...
@@ -1074,7 +1074,7 @@ static BOOL write_raw_resources( QUEUEDUPDATES *updates )
sec
->
SizeOfRawData
=
0
;
}
TRACE
(
"before .rsrc at %08
x, size %08
x
\n
"
,
sec
->
PointerToRawData
,
sec
->
SizeOfRawData
);
TRACE
(
"before .rsrc at %08
lx, size %08l
x
\n
"
,
sec
->
PointerToRawData
,
sec
->
SizeOfRawData
);
get_resource_sizes
(
updates
,
&
res_size
);
...
...
@@ -1082,7 +1082,7 @@ static BOOL write_raw_resources( QUEUEDUPDATES *updates )
section_size
=
res_size
.
total_size
;
section_size
+=
(
-
section_size
)
%
PeFileAlignment
;
TRACE
(
"requires %08
x (%08
x) bytes
\n
"
,
res_size
.
total_size
,
section_size
);
TRACE
(
"requires %08
lx (%08l
x) bytes
\n
"
,
res_size
.
total_size
,
section_size
);
/* check if the file size needs to be changed */
if
(
section_size
!=
sec
->
SizeOfRawData
)
...
...
@@ -1100,7 +1100,7 @@ static BOOL write_raw_resources( QUEUEDUPDATES *updates )
/* postpone file truncation if there are some data to be moved down from file end */
BOOL
resize_after
=
mapping_size
<
old_size
&&
!
rsrc_is_last
;
TRACE
(
"file size %08
x -> %08
x
\n
"
,
old_size
,
mapping_size
);
TRACE
(
"file size %08
lx -> %08l
x
\n
"
,
old_size
,
mapping_size
);
if
(
!
resize_after
)
{
...
...
@@ -1184,13 +1184,13 @@ static BOOL write_raw_resources( QUEUEDUPDATES *updates )
res_base
=
(
LPBYTE
)
write_map
->
base
+
sec
->
PointerToRawData
;
TRACE
(
"base = %p offset = %08x
\n
"
,
write_map
->
base
,
sec
->
PointerToRawData
);
TRACE
(
"base = %p offset = %08
l
x
\n
"
,
write_map
->
base
,
sec
->
PointerToRawData
);
ret
=
write_resources
(
updates
,
res_base
,
&
res_size
,
sec
->
VirtualAddress
);
res_write_padding
(
res_base
+
res_size
.
total_size
,
section_size
-
res_size
.
total_size
);
TRACE
(
"after .rsrc at %08
x, size %08
x
\n
"
,
sec
->
PointerToRawData
,
sec
->
SizeOfRawData
);
TRACE
(
"after .rsrc at %08
lx, size %08l
x
\n
"
,
sec
->
PointerToRawData
,
sec
->
SizeOfRawData
);
done:
destroy_mapping
(
read_map
);
...
...
@@ -1309,7 +1309,7 @@ BOOL WINAPI UpdateResourceW( HANDLE hUpdate, LPCWSTR lpType, LPCWSTR lpName,
UNICODE_STRING
nameW
,
typeW
;
BOOL
ret
=
FALSE
;
TRACE
(
"%p %s %s %08x %p %d
\n
"
,
hUpdate
,
TRACE
(
"%p %s %s %08x %p %
l
d
\n
"
,
hUpdate
,
debugstr_w
(
lpType
),
debugstr_w
(
lpName
),
wLanguage
,
lpData
,
cbData
);
nameW
.
Buffer
=
typeW
.
Buffer
=
NULL
;
...
...
dlls/kernel32/sync.c
View file @
a0fee49d
...
...
@@ -566,7 +566,7 @@ BOOL WINAPI GetNamedPipeHandleStateA(
WCHAR
*
username
=
NULL
;
BOOL
ret
;
WARN
(
"%p %p %p %p %p %p %d: semi-stub
\n
"
,
hNamedPipe
,
lpState
,
lpCurInstances
,
WARN
(
"%p %p %p %p %p %p %
l
d: semi-stub
\n
"
,
hNamedPipe
,
lpState
,
lpCurInstances
,
lpMaxCollectionCount
,
lpCollectDataTimeout
,
lpUsername
,
nUsernameMaxSize
);
if
(
lpUsername
&&
nUsernameMaxSize
&&
...
...
@@ -593,7 +593,7 @@ BOOL WINAPI CallNamedPipeA(
LPWSTR
str
=
NULL
;
BOOL
ret
;
TRACE
(
"%s %p %
d %p %d %p %
d
\n
"
,
TRACE
(
"%s %p %
ld %p %ld %p %l
d
\n
"
,
debugstr_a
(
lpNamedPipeName
),
lpInput
,
dwInputSize
,
lpOutput
,
dwOutputSize
,
lpBytesRead
,
nTimeout
);
...
...
@@ -623,7 +623,7 @@ HANDLE WINAPI CreateMailslotA( LPCSTR lpName, DWORD nMaxMessageSize,
HANDLE
handle
;
LPWSTR
name
=
NULL
;
TRACE
(
"%s %
d %
d %p
\n
"
,
debugstr_a
(
lpName
),
TRACE
(
"%s %
ld %l
d %p
\n
"
,
debugstr_a
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
if
(
lpName
)
...
...
@@ -665,7 +665,7 @@ HANDLE WINAPI CreateMailslotW( LPCWSTR lpName, DWORD nMaxMessageSize,
LARGE_INTEGER
timeout
;
IO_STATUS_BLOCK
iosb
;
TRACE
(
"%s %
d %
d %p
\n
"
,
debugstr_w
(
lpName
),
TRACE
(
"%s %
ld %l
d %p
\n
"
,
debugstr_w
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
if
(
!
RtlDosPathNameToNtPathName_U
(
lpName
,
&
nameW
,
NULL
,
NULL
))
...
...
@@ -767,7 +767,7 @@ BOOL WINAPI SetMailslotInfo( HANDLE hMailslot, DWORD dwReadTimeout)
FILE_MAILSLOT_SET_INFORMATION
info
;
IO_STATUS_BLOCK
iosb
;
TRACE
(
"%p %d
\n
"
,
hMailslot
,
dwReadTimeout
);
TRACE
(
"%p %
l
d
\n
"
,
hMailslot
,
dwReadTimeout
);
if
(
dwReadTimeout
!=
MAILSLOT_WAIT_FOREVER
)
info
.
ReadTimeout
.
QuadPart
=
(
ULONGLONG
)
dwReadTimeout
*
-
10000
;
...
...
dlls/kernel32/tape.c
View file @
a0fee49d
...
...
@@ -51,7 +51,7 @@ static DWORD set_error_from_status( NTSTATUS status )
BOOL
WINAPI
BackupRead
(
HANDLE
file
,
LPBYTE
buffer
,
DWORD
to_read
,
LPDWORD
read
,
BOOL
abort
,
BOOL
security
,
LPVOID
*
context
)
{
FIXME
(
"(%p, %p, %d, %p, %d, %d, %p)
\n
"
,
file
,
buffer
,
FIXME
(
"(%p, %p, %
l
d, %p, %d, %d, %p)
\n
"
,
file
,
buffer
,
to_read
,
read
,
abort
,
security
,
context
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
...
...
@@ -66,7 +66,7 @@ BOOL WINAPI BackupRead( HANDLE file, LPBYTE buffer, DWORD to_read,
BOOL
WINAPI
BackupSeek
(
HANDLE
file
,
DWORD
seek_low
,
DWORD
seek_high
,
LPDWORD
seeked_low
,
LPDWORD
seeked_high
,
LPVOID
*
context
)
{
FIXME
(
"(%p, %
d, %
d, %p, %p, %p)
\n
"
,
file
,
seek_low
,
FIXME
(
"(%p, %
ld, %l
d, %p, %p, %p)
\n
"
,
file
,
seek_low
,
seek_high
,
seeked_low
,
seeked_high
,
context
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
...
...
@@ -81,7 +81,7 @@ BOOL WINAPI BackupSeek( HANDLE file, DWORD seek_low, DWORD seek_high,
BOOL
WINAPI
BackupWrite
(
HANDLE
file
,
LPBYTE
buffer
,
DWORD
to_write
,
LPDWORD
written
,
BOOL
abort
,
BOOL
security
,
LPVOID
*
context
)
{
FIXME
(
"(%p, %p, %d, %p, %d, %d, %p)
\n
"
,
file
,
buffer
,
FIXME
(
"(%p, %p, %
l
d, %p, %d, %d, %p)
\n
"
,
file
,
buffer
,
to_write
,
written
,
abort
,
security
,
context
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
...
...
@@ -100,7 +100,7 @@ DWORD WINAPI CreateTapePartition( HANDLE device, DWORD method,
TAPE_CREATE_PARTITION
part
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %
d, %d, %
d)
\n
"
,
device
,
method
,
count
,
size
);
TRACE
(
"(%p, %
ld, %ld, %l
d)
\n
"
,
device
,
method
,
count
,
size
);
part
.
Method
=
method
;
part
.
Count
=
count
;
...
...
@@ -124,7 +124,7 @@ DWORD WINAPI EraseTape( HANDLE device, DWORD type, BOOL immediate )
TAPE_ERASE
erase
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %d, %d)
\n
"
,
device
,
type
,
immediate
);
TRACE
(
"(%p, %
l
d, %d)
\n
"
,
device
,
type
,
immediate
);
erase
.
Type
=
type
;
erase
.
Immediate
=
immediate
;
...
...
@@ -147,7 +147,7 @@ DWORD WINAPI GetTapeParameters( HANDLE device, DWORD operation,
NTSTATUS
status
=
STATUS_INVALID_PARAMETER
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
device
,
operation
,
size
,
info
);
TRACE
(
"(%p, %
l
d, %p, %p)
\n
"
,
device
,
operation
,
size
,
info
);
switch
(
operation
)
{
...
...
@@ -160,7 +160,7 @@ DWORD WINAPI GetTapeParameters( HANDLE device, DWORD operation,
IOCTL_TAPE_GET_MEDIA_PARAMS
,
NULL
,
0
,
info
,
*
size
);
break
;
default:
ERR
(
"Unhandled operation: 0x%08x
\n
"
,
operation
);
ERR
(
"Unhandled operation: 0x%08
l
x
\n
"
,
operation
);
}
return
set_error_from_status
(
status
);
...
...
@@ -179,7 +179,7 @@ DWORD WINAPI GetTapePosition( HANDLE device, DWORD type, LPDWORD partition,
TAPE_GET_POSITION
in
,
out
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %d, %p, %p, %p)
\n
"
,
device
,
type
,
partition
,
offset_low
,
TRACE
(
"(%p, %
l
d, %p, %p, %p)
\n
"
,
device
,
type
,
partition
,
offset_low
,
offset_high
);
memset
(
&
in
,
0
,
sizeof
(
TAPE_GET_POSITION
)
);
...
...
@@ -230,7 +230,7 @@ DWORD WINAPI PrepareTape( HANDLE device, DWORD operation, BOOL immediate )
TAPE_PREPARE
prep
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %d, %d)
\n
"
,
device
,
operation
,
immediate
);
TRACE
(
"(%p, %
l
d, %d)
\n
"
,
device
,
operation
,
immediate
);
prep
.
Operation
=
operation
;
prep
.
Immediate
=
immediate
;
...
...
@@ -252,7 +252,7 @@ DWORD WINAPI SetTapeParameters( HANDLE device, DWORD operation, LPVOID info )
NTSTATUS
status
=
STATUS_INVALID_PARAMETER
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %d, %p)
\n
"
,
device
,
operation
,
info
);
TRACE
(
"(%p, %
l
d, %p)
\n
"
,
device
,
operation
,
info
);
switch
(
operation
)
{
...
...
@@ -267,7 +267,7 @@ DWORD WINAPI SetTapeParameters( HANDLE device, DWORD operation, LPVOID info )
NULL
,
0
);
break
;
default:
ERR
(
"Unhandled operation: 0x%08x
\n
"
,
operation
);
ERR
(
"Unhandled operation: 0x%08
l
x
\n
"
,
operation
);
}
return
set_error_from_status
(
status
);
...
...
@@ -286,7 +286,7 @@ DWORD WINAPI SetTapePosition( HANDLE device, DWORD method, DWORD partition,
TAPE_SET_POSITION
pos
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %
d, %d, %d, %
d, %d)
\n
"
,
device
,
method
,
partition
,
TRACE
(
"(%p, %
ld, %ld, %ld, %l
d, %d)
\n
"
,
device
,
method
,
partition
,
offset_low
,
offset_high
,
immediate
);
pos
.
Method
=
method
;
...
...
@@ -314,7 +314,7 @@ DWORD WINAPI WriteTapemark( HANDLE device, DWORD type, DWORD count,
TAPE_WRITE_MARKS
marks
;
IO_STATUS_BLOCK
io
;
TRACE
(
"(%p, %
d, %
d, %d)
\n
"
,
device
,
type
,
count
,
immediate
);
TRACE
(
"(%p, %
ld, %l
d, %d)
\n
"
,
device
,
type
,
count
,
immediate
);
marks
.
Type
=
type
;
marks
.
Count
=
count
;
...
...
dlls/kernel32/thread.c
View file @
a0fee49d
...
...
@@ -106,7 +106,7 @@ BOOL WINAPI Wow64GetThreadContext( HANDLE handle, WOW64_CONTEXT *context)
*/
BOOL
WINAPI
Wow64GetThreadSelectorEntry
(
HANDLE
thread
,
DWORD
selector
,
WOW64_LDT_ENTRY
*
selector_entry
)
{
FIXME
(
"(%p %u %p): stub
\n
"
,
thread
,
selector
,
selector_entry
);
FIXME
(
"(%p %
l
u %p): stub
\n
"
,
thread
,
selector
,
selector_entry
);
return
set_ntstatus
(
STATUS_NOT_IMPLEMENTED
);
}
...
...
dlls/kernel32/toolhelp.c
View file @
a0fee49d
...
...
@@ -290,10 +290,10 @@ HANDLE WINAPI CreateToolhelp32Snapshot( DWORD flags, DWORD process )
ULONG
num_pcs
,
num_thd
,
num_mod
;
HANDLE
hSnapShot
=
0
;
TRACE
(
"%
x,%
x
\n
"
,
flags
,
process
);
TRACE
(
"%
lx,%l
x
\n
"
,
flags
,
process
);
if
(
!
(
flags
&
(
TH32CS_SNAPPROCESS
|
TH32CS_SNAPTHREAD
|
TH32CS_SNAPMODULE
)))
{
FIXME
(
"flags %x not implemented
\n
"
,
flags
);
FIXME
(
"flags %
l
x not implemented
\n
"
,
flags
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
INVALID_HANDLE_VALUE
;
}
...
...
@@ -349,7 +349,7 @@ static BOOL next_thread( HANDLE hSnapShot, LPTHREADENTRY32 lpte, BOOL first )
if
(
lpte
->
dwSize
<
sizeof
(
THREADENTRY32
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
WARN
(
"Result buffer too small (%d)
\n
"
,
lpte
->
dwSize
);
WARN
(
"Result buffer too small (%
l
d)
\n
"
,
lpte
->
dwSize
);
return
FALSE
;
}
if
((
snap
=
MapViewOfFile
(
hSnapShot
,
FILE_MAP_ALL_ACCESS
,
0
,
0
,
0
)))
...
...
@@ -404,7 +404,7 @@ static BOOL process_next( HANDLE hSnapShot, LPPROCESSENTRY32W lppe,
if
(
lppe
->
dwSize
<
sz
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
WARN
(
"Result buffer too small (%d)
\n
"
,
lppe
->
dwSize
);
WARN
(
"Result buffer too small (%
l
d)
\n
"
,
lppe
->
dwSize
);
return
FALSE
;
}
if
((
snap
=
MapViewOfFile
(
hSnapShot
,
FILE_MAP_ALL_ACCESS
,
0
,
0
,
0
)))
...
...
@@ -494,7 +494,7 @@ static BOOL module_nextW( HANDLE hSnapShot, LPMODULEENTRY32W lpme, BOOL first )
if
(
lpme
->
dwSize
<
sizeof
(
MODULEENTRY32W
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
WARN
(
"Result buffer too small (was: %d)
\n
"
,
lpme
->
dwSize
);
WARN
(
"Result buffer too small (was: %
l
d)
\n
"
,
lpme
->
dwSize
);
return
FALSE
;
}
if
((
snap
=
MapViewOfFile
(
hSnapShot
,
FILE_MAP_ALL_ACCESS
,
0
,
0
,
0
)))
...
...
@@ -546,7 +546,7 @@ static BOOL module_nextA( HANDLE handle, LPMODULEENTRY32 lpme, BOOL first )
if
(
lpme
->
dwSize
<
sizeof
(
MODULEENTRY32
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
WARN
(
"Result buffer too small (was: %d)
\n
"
,
lpme
->
dwSize
);
WARN
(
"Result buffer too small (was: %
l
d)
\n
"
,
lpme
->
dwSize
);
return
FALSE
;
}
...
...
dlls/kernel32/version.c
View file @
a0fee49d
...
...
@@ -124,7 +124,7 @@ BOOL WINAPI VerifyVersionInfoW( LPOSVERSIONINFOEXW info, DWORD dwTypeMask,
{
OSVERSIONINFOEXW
ver
;
TRACE
(
"(%p 0x%x 0x%s)
\n
"
,
info
,
dwTypeMask
,
wine_dbgstr_longlong
(
dwlConditionMask
));
TRACE
(
"(%p 0x%
l
x 0x%s)
\n
"
,
info
,
dwTypeMask
,
wine_dbgstr_longlong
(
dwlConditionMask
));
ver
.
dwOSVersionInfoSize
=
sizeof
(
ver
);
if
(
!
GetVersionExW
((
OSVERSIONINFOW
*
)
&
ver
))
return
FALSE
;
...
...
dlls/kernel32/volume.c
View file @
a0fee49d
...
...
@@ -251,7 +251,7 @@ BOOL WINAPI SetVolumeLabelW( LPCWSTR root, LPCWSTR label )
}
else
{
TRACE
(
"cannot open device %s: err %d
\n
"
,
debugstr_w
(
device
),
GetLastError
()
);
TRACE
(
"cannot open device %s: err %
l
d
\n
"
,
debugstr_w
(
device
),
GetLastError
()
);
if
(
GetLastError
()
==
ERROR_ACCESS_DENIED
)
return
FALSE
;
}
...
...
@@ -323,7 +323,7 @@ BOOL WINAPI GetVolumeNameForVolumeMountPointA( LPCSTR path, LPSTR volume, DWORD
WCHAR
volumeW
[
50
],
*
pathW
=
NULL
;
DWORD
len
=
min
(
ARRAY_SIZE
(
volumeW
),
size
);
TRACE
(
"(%s, %p, %x)
\n
"
,
debugstr_a
(
path
),
volume
,
size
);
TRACE
(
"(%s, %p, %
l
x)
\n
"
,
debugstr_a
(
path
),
volume
,
size
);
if
(
!
path
||
!
(
pathW
=
FILE_name_AtoW
(
path
,
TRUE
)))
return
FALSE
;
...
...
@@ -415,7 +415,7 @@ BOOL WINAPI GetVolumePathNameA(LPCSTR filename, LPSTR volumepathname, DWORD bufl
BOOL
ret
;
WCHAR
*
filenameW
=
NULL
,
*
volumeW
=
NULL
;
TRACE
(
"(%s, %p, %d)
\n
"
,
debugstr_a
(
filename
),
volumepathname
,
buflen
);
TRACE
(
"(%s, %p, %
l
d)
\n
"
,
debugstr_a
(
filename
),
volumepathname
,
buflen
);
if
(
filename
&&
!
(
filenameW
=
FILE_name_AtoW
(
filename
,
FALSE
)))
return
FALSE
;
...
...
@@ -506,7 +506,7 @@ BOOL WINAPI FindNextVolumeA( HANDLE handle, LPSTR volume, DWORD len )
*/
HANDLE
WINAPI
FindFirstVolumeMountPointA
(
LPCSTR
root
,
LPSTR
mount_point
,
DWORD
len
)
{
FIXME
(
"(%s, %p, %d), stub!
\n
"
,
debugstr_a
(
root
),
mount_point
,
len
);
FIXME
(
"(%s, %p, %
l
d), stub!
\n
"
,
debugstr_a
(
root
),
mount_point
,
len
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
INVALID_HANDLE_VALUE
;
}
...
...
@@ -516,7 +516,7 @@ HANDLE WINAPI FindFirstVolumeMountPointA(LPCSTR root, LPSTR mount_point, DWORD l
*/
HANDLE
WINAPI
FindFirstVolumeMountPointW
(
LPCWSTR
root
,
LPWSTR
mount_point
,
DWORD
len
)
{
FIXME
(
"(%s, %p, %d), stub!
\n
"
,
debugstr_w
(
root
),
mount_point
,
len
);
FIXME
(
"(%s, %p, %
l
d), stub!
\n
"
,
debugstr_w
(
root
),
mount_point
,
len
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
INVALID_HANDLE_VALUE
;
}
...
...
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