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
7375597f
Commit
7375597f
authored
Jul 31, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some handle type mismatches and added a few casts in prevision
of void* handles.
parent
05d42e5b
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
70 additions
and
118 deletions
+70
-118
crypt.c
dlls/advapi32/crypt.c
+1
-1
crypt.h
dlls/advapi32/crypt.h
+10
-0
eventlog.c
dlls/advapi32/eventlog.c
+5
-5
registry.c
dlls/advapi32/registry.c
+2
-2
service.c
dlls/advapi32/service.c
+1
-2
debugger.c
dlls/kernel/debugger.c
+0
-3
thunk.c
dlls/kernel/thunk.c
+2
-2
wowthunk.c
dlls/kernel/wowthunk.c
+2
-4
critsection.c
dlls/ntdll/critsection.c
+4
-4
nt.c
dlls/ntdll/nt.c
+2
-2
rtl.c
dlls/ntdll/rtl.c
+3
-3
infparse.c
dlls/setupapi/infparse.c
+0
-32
setupapi_private.h
dlls/setupapi/setupapi_private.h
+0
-11
gdi.h
include/gdi.h
+9
-9
palette.h
include/palette.h
+1
-1
wincrypt.h
include/wincrypt.h
+0
-9
module.c
loader/ne/module.c
+5
-5
registry.c
memory/registry.c
+1
-1
selector.c
memory/selector.c
+3
-3
registry.c
misc/registry.c
+1
-1
vxd.c
msdos/vxd.c
+3
-4
palette.c
objects/palette.c
+3
-3
snoop.c
relay32/snoop.c
+2
-2
syslevel.c
scheduler/syslevel.c
+3
-2
thread.c
scheduler/thread.c
+1
-1
registry.c
server/registry.c
+2
-2
sock.c
server/sock.c
+2
-2
newfns.c
win32/newfns.c
+2
-2
No files found.
dlls/advapi32/crypt.c
View file @
7375597f
...
...
@@ -153,7 +153,7 @@ BOOL CRYPT_VerifyImage(LPCSTR lpszImage, BYTE* pData)
return
TRUE
;
}
BOOL
CRYPT_ReturnhWnd
(
DWOR
D
*
phWnd
)
BOOL
CRYPT_ReturnhWnd
(
HWN
D
*
phWnd
)
{
if
(
!
phWnd
)
return
FALSE
;
...
...
dlls/advapi32/crypt.h
View file @
7375597f
...
...
@@ -23,6 +23,16 @@
#include "wincrypt.h"
typedef
struct
_VTableProvStruc
{
DWORD
Version
;
BOOL
(
*
pFuncVerifyImage
)(
LPCSTR
lpszImage
,
BYTE
*
pSigData
);
BOOL
(
*
pFuncReturnhWnd
)(
HWND
*
phWnd
);
DWORD
dwProvType
;
BYTE
*
pbContextInfo
;
DWORD
cbContextInfo
;
LPSTR
pszProvName
;
}
VTableProvStruc
,
*
PVTableProvStruc
;
typedef
struct
tagPROVFUNCS
{
BOOL
(
*
pCPAcquireContext
)(
HCRYPTPROV
*
phProv
,
LPSTR
pszContainer
,
DWORD
dwFlags
,
PVTableProvStruc
pVTable
);
...
...
dlls/advapi32/eventlog.c
View file @
7375597f
...
...
@@ -140,7 +140,7 @@ HANDLE WINAPI
OpenBackupEventLogA
(
LPCSTR
lpUNCServerName
,
LPCSTR
lpFileName
)
{
FIXME
(
"stub
\n
"
);
return
TRUE
;
return
(
HANDLE
)
1
;
}
/******************************************************************************
...
...
@@ -154,7 +154,7 @@ HANDLE WINAPI
OpenBackupEventLogW
(
LPCWSTR
lpUNCServerName
,
LPCWSTR
lpFileName
)
{
FIXME
(
"stub
\n
"
);
return
TRUE
;
return
(
HANDLE
)
1
;
}
/******************************************************************************
...
...
@@ -163,7 +163,7 @@ OpenBackupEventLogW( LPCWSTR lpUNCServerName, LPCWSTR lpFileName )
HANDLE
WINAPI
OpenEventLogA
(
LPCSTR
uncname
,
LPCSTR
source
)
{
FIXME
(
"(%s,%s),stub!
\n
"
,
uncname
,
source
);
return
0xcafe4242
;
return
(
HANDLE
)
0xcafe4242
;
}
/******************************************************************************
...
...
@@ -177,7 +177,7 @@ HANDLE WINAPI
OpenEventLogW
(
LPCWSTR
uncname
,
LPCWSTR
source
)
{
FIXME
(
"stub
\n
"
);
return
TRUE
;
return
(
HANDLE
)
1
;
}
/******************************************************************************
...
...
@@ -241,7 +241,7 @@ RegisterEventSourceW( LPCWSTR lpUNCServerName, LPCWSTR lpSourceName )
{
FIXME
(
"(%s,%s): stub
\n
"
,
debugstr_w
(
lpUNCServerName
),
debugstr_w
(
lpSourceName
));
return
1
;
return
(
HANDLE
)
1
;
}
/******************************************************************************
...
...
dlls/advapi32/registry.c
View file @
7375597f
...
...
@@ -674,7 +674,7 @@ DWORD WINAPI RegQueryInfoKeyA( HKEY hkey, LPSTR class, LPDWORD class_len, LPDWOR
*/
DWORD
WINAPI
RegCloseKey
(
HKEY
hkey
)
{
if
(
!
hkey
||
hkey
>=
0x80000000
)
return
ERROR_SUCCESS
;
if
(
!
hkey
||
hkey
>=
(
HKEY
)
0x80000000
)
return
ERROR_SUCCESS
;
return
RtlNtStatusToDosError
(
NtClose
(
hkey
)
);
}
...
...
@@ -1435,7 +1435,7 @@ LONG WINAPI RegSaveKeyA( HKEY hkey, LPCSTR file, LPSECURITY_ATTRIBUTES sa )
int
count
=
0
;
LPSTR
name
;
DWORD
ret
,
err
;
H
FI
LE
handle
;
H
AND
LE
handle
;
TRACE
(
"(%x,%s,%p)
\n
"
,
hkey
,
debugstr_a
(
file
),
sa
);
...
...
dlls/advapi32/service.c
View file @
7375597f
...
...
@@ -596,7 +596,7 @@ StartServiceW( SC_HANDLE hService, DWORD dwNumServiceArgs,
TRACE
(
"Starting service %s
\n
"
,
debugstr_a
(
path
)
);
data
=
CreateSemaphoreA
(
NULL
,
1
,
1
,
"ADVAPI32_ServiceStartData"
);
if
(
data
==
ERROR_INVALID_HANDLE
)
if
(
!
data
)
{
data
=
OpenSemaphoreA
(
SEMAPHORE_ALL_ACCESS
,
FALSE
,
"ADVAPI32_ServiceStartData"
);
if
(
data
==
0
)
...
...
@@ -700,4 +700,3 @@ QueryServiceStatus( SC_HANDLE hService, LPSERVICE_STATUS lpservicestatus )
return
TRUE
;
}
dlls/kernel/debugger.c
View file @
7375597f
...
...
@@ -88,7 +88,6 @@ BOOL WINAPI WaitForDebugEvent(
event
->
u
.
CreateProcessInfo
.
lpStartAddress
=
data
.
info
.
create_process
.
start
;
event
->
u
.
CreateProcessInfo
.
lpImageName
=
data
.
info
.
create_process
.
name
;
event
->
u
.
CreateProcessInfo
.
fUnicode
=
data
.
info
.
create_process
.
unicode
;
if
(
data
.
info
.
create_process
.
file
==
-
1
)
event
->
u
.
CreateProcessInfo
.
hFile
=
0
;
break
;
case
EXIT_THREAD_DEBUG_EVENT
:
event
->
u
.
ExitThread
.
dwExitCode
=
data
.
info
.
exit
.
exit_code
;
...
...
@@ -103,7 +102,6 @@ BOOL WINAPI WaitForDebugEvent(
event
->
u
.
LoadDll
.
nDebugInfoSize
=
data
.
info
.
load_dll
.
dbg_size
;
event
->
u
.
LoadDll
.
lpImageName
=
data
.
info
.
load_dll
.
name
;
event
->
u
.
LoadDll
.
fUnicode
=
data
.
info
.
load_dll
.
unicode
;
if
(
data
.
info
.
load_dll
.
handle
==
-
1
)
event
->
u
.
LoadDll
.
hFile
=
0
;
break
;
case
UNLOAD_DLL_DEBUG_EVENT
:
event
->
u
.
UnloadDll
.
lpBaseOfDll
=
data
.
info
.
unload_dll
.
base
;
...
...
@@ -389,4 +387,3 @@ BOOL WINAPI DebugSetProcessKillOnExit(BOOL kill)
SERVER_END_REQ
;
return
ret
;
}
dlls/kernel/thunk.c
View file @
7375597f
...
...
@@ -145,7 +145,7 @@ static LPVOID _loadthunk(LPCSTR module, LPCSTR func, LPCSTR module32,
struct
ThunkDataCommon
*
TD32
,
DWORD
checksum
)
{
struct
ThunkDataCommon
*
TD16
;
HMODULE
hmod
;
HMODULE
16
hmod
;
int
ordinal
;
if
((
hmod
=
LoadLibrary16
(
module
))
<=
32
)
...
...
@@ -1918,7 +1918,7 @@ void WINAPI CBClientThunkSLEx( CONTEXT86 *context )
* A 16:16 segmented pointer to the function is returned.
* Written without any docu.
*/
SEGPTR
WINAPI
Get16DLLAddress
(
HMODULE
handle
,
LPSTR
func_name
)
SEGPTR
WINAPI
Get16DLLAddress
(
HMODULE
16
handle
,
LPSTR
func_name
)
{
static
WORD
code_sel32
;
FARPROC16
proc_16
;
...
...
dlls/kernel/wowthunk.c
View file @
7375597f
...
...
@@ -211,11 +211,11 @@ HANDLE WINAPI K32WOWHandle32( WORD handle, WOW_HANDLE_TYPE type )
case
WOW_TYPE_HACCEL
:
case
WOW_TYPE_HTASK
:
case
WOW_TYPE_FULLHWND
:
return
(
HANDLE
)
handle
;
return
(
HANDLE
)
(
ULONG_PTR
)
handle
;
default:
ERR
(
"handle 0x%04x of unknown type %d
\n
"
,
handle
,
type
);
return
(
HANDLE
)
handle
;
return
(
HANDLE
)
(
ULONG_PTR
)
handle
;
}
}
...
...
@@ -501,5 +501,3 @@ DWORD WINAPI WOW16Call(WORD x,WORD y,WORD z)
DPRINTF
(
") calling address was 0x%08lx
\n
"
,
calladdr
);
return
0
;
}
dlls/ntdll/critsection.c
View file @
7375597f
...
...
@@ -160,7 +160,7 @@ NTSTATUS WINAPI RtlEnterCriticalSection( RTL_CRITICAL_SECTION *crit )
{
if
(
interlocked_inc
(
&
crit
->
LockCount
))
{
if
(
crit
->
OwningThread
==
GetCurrentThreadId
())
if
(
crit
->
OwningThread
==
(
HANDLE
)
GetCurrentThreadId
())
{
crit
->
RecursionCount
++
;
return
STATUS_SUCCESS
;
...
...
@@ -169,7 +169,7 @@ NTSTATUS WINAPI RtlEnterCriticalSection( RTL_CRITICAL_SECTION *crit )
/* Now wait for it */
RtlpWaitForCriticalSection
(
crit
);
}
crit
->
OwningThread
=
GetCurrentThreadId
();
crit
->
OwningThread
=
(
HANDLE
)
GetCurrentThreadId
();
crit
->
RecursionCount
=
1
;
return
STATUS_SUCCESS
;
}
...
...
@@ -183,11 +183,11 @@ BOOL WINAPI RtlTryEnterCriticalSection( RTL_CRITICAL_SECTION *crit )
BOOL
ret
=
FALSE
;
if
(
interlocked_cmpxchg
(
&
crit
->
LockCount
,
0L
,
-
1
)
==
-
1
)
{
crit
->
OwningThread
=
GetCurrentThreadId
();
crit
->
OwningThread
=
(
HANDLE
)
GetCurrentThreadId
();
crit
->
RecursionCount
=
1
;
ret
=
TRUE
;
}
else
if
(
crit
->
OwningThread
==
GetCurrentThreadId
())
else
if
(
crit
->
OwningThread
==
(
HANDLE
)
GetCurrentThreadId
())
{
interlocked_inc
(
&
crit
->
LockCount
);
crit
->
RecursionCount
++
;
...
...
dlls/ntdll/nt.c
View file @
7375597f
...
...
@@ -274,7 +274,7 @@ NTSTATUS WINAPI NtOpenProcessToken(
{
FIXME
(
"(0x%08x,0x%08lx,%p): stub
\n
"
,
ProcessHandle
,
DesiredAccess
,
TokenHandle
);
*
TokenHandle
=
0xcafe
;
*
TokenHandle
=
(
HANDLE
)
0xcafe
;
return
0
;
}
...
...
@@ -290,7 +290,7 @@ NTSTATUS WINAPI NtOpenThreadToken(
{
FIXME
(
"(0x%08x,0x%08lx,0x%08x,%p): stub
\n
"
,
ThreadHandle
,
DesiredAccess
,
OpenAsSelf
,
TokenHandle
);
*
TokenHandle
=
0xcafe
;
*
TokenHandle
=
(
HANDLE
)
0xcafe
;
return
0
;
}
...
...
dlls/ntdll/rtl.c
View file @
7375597f
...
...
@@ -101,7 +101,7 @@ start:
}
else
if
(
rwl
->
iNumberActive
<
0
)
/* exclusive lock in progress */
{
if
(
rwl
->
hOwningThreadId
==
GetCurrentThreadId
()
)
if
(
rwl
->
hOwningThreadId
==
(
HANDLE
)
GetCurrentThreadId
()
)
{
retVal
=
1
;
rwl
->
iNumberActive
--
;
...
...
@@ -123,7 +123,7 @@ wait:
goto
wait
;
if
(
retVal
==
1
)
rwl
->
hOwningThreadId
=
GetCurrentThreadId
();
rwl
->
hOwningThreadId
=
(
HANDLE
)
GetCurrentThreadId
();
done:
RtlLeaveCriticalSection
(
&
rwl
->
rtlCS
);
return
retVal
;
...
...
@@ -142,7 +142,7 @@ start:
RtlEnterCriticalSection
(
&
rwl
->
rtlCS
);
if
(
rwl
->
iNumberActive
<
0
)
{
if
(
rwl
->
hOwningThreadId
==
GetCurrentThreadId
()
)
if
(
rwl
->
hOwningThreadId
==
(
HANDLE
)
GetCurrentThreadId
()
)
{
rwl
->
iNumberActive
--
;
retVal
=
1
;
...
...
dlls/setupapi/infparse.c
View file @
7375597f
...
...
@@ -189,35 +189,3 @@ RETERR16 WINAPI GenInstall16( HINF16 hinf16, LPCSTR section, WORD genflags )
SetupTermDefaultQueueCallback
(
context
);
return
ret
;
}
WORD
InfNumEntries
=
0
;
INF_FILE
*
InfList
=
NULL
;
HINF16
IP_curr_handle
=
0
;
BOOL
IP_FindInf
(
HINF16
hInf
,
WORD
*
ret
)
{
WORD
n
;
for
(
n
=
0
;
n
<
InfNumEntries
;
n
++
)
if
(
InfList
[
n
].
hInf
==
hInf
)
{
*
ret
=
n
;
return
TRUE
;
}
return
FALSE
;
}
LPCSTR
IP_GetFileName
(
HINF16
hInf
)
{
WORD
n
;
if
(
IP_FindInf
(
hInf
,
&
n
))
{
return
InfList
[
n
].
lpInfFileName
;
}
return
NULL
;
}
dlls/setupapi/setupapi_private.h
View file @
7375597f
...
...
@@ -44,17 +44,6 @@ typedef struct tagLDD_LIST {
ldd.ldid = LDID; \
} while(0)
typedef
struct
{
HINF16
hInf
;
HFILE
hInfFile
;
LPSTR
lpInfFileName
;
}
INF_FILE
;
extern
INF_FILE
*
InfList
;
extern
WORD
InfNumEntries
;
extern
LPCSTR
IP_GetFileName
(
HINF16
hInf
);
/* string substitutions */
struct
inf_file
;
...
...
include/gdi.h
View file @
7375597f
...
...
@@ -96,15 +96,15 @@ typedef struct tagDC
INT
vportExtY
;
int
flags
;
HRGN
16
hClipRgn
;
/* Clip region (may be 0) */
HRGN
16
hVisRgn
;
/* Visible region (must never be 0) */
HRGN
16
hGCClipRgn
;
/* GC clip region (ClipRgn AND VisRgn) */
HPEN
16
hPen
;
HBRUSH
16
hBrush
;
HFONT
16
hFont
;
HBITMAP
16
hBitmap
;
HANDLE
16
hDevice
;
HPALETTE
16
hPalette
;
HRGN
hClipRgn
;
/* Clip region (may be 0) */
HRGN
hVisRgn
;
/* Visible region (must never be 0) */
HRGN
hGCClipRgn
;
/* GC clip region (ClipRgn AND VisRgn) */
HPEN
hPen
;
HBRUSH
hBrush
;
HFONT
hFont
;
HBITMAP
hBitmap
;
HANDLE
hDevice
;
HPALETTE
hPalette
;
GdiFont
gdiFont
;
GdiPath
path
;
...
...
include/palette.h
View file @
7375597f
...
...
@@ -37,6 +37,6 @@ typedef struct tagPALETTEOBJ
LOGPALETTE
logpalette
;
/* _MUST_ be the last field */
}
PALETTEOBJ
;
extern
HPALETTE
16
PALETTE_Init
(
void
);
extern
HPALETTE
PALETTE_Init
(
void
);
#endif
/* __WINE_PALETTE_H */
include/wincrypt.h
View file @
7375597f
...
...
@@ -28,15 +28,6 @@ typedef unsigned long HCRYPTKEY;
typedef
unsigned
long
HCRYPTHASH
;
/* CSP Structs */
typedef
struct
_VTableProvStruc
{
DWORD
Version
;
BOOL
(
*
pFuncVerifyImage
)(
LPCSTR
lpszImage
,
BYTE
*
pSigData
);
BOOL
(
*
pFuncReturnhWnd
)(
DWORD
*
phWnd
);
DWORD
dwProvType
;
BYTE
*
pbContextInfo
;
DWORD
cbContextInfo
;
LPSTR
pszProvName
;
}
VTableProvStruc
,
*
PVTableProvStruc
;
typedef
struct
_CRYPTOAPI_BLOB
{
DWORD
cbData
;
...
...
loader/ne/module.c
View file @
7375597f
...
...
@@ -1713,7 +1713,7 @@ HMODULE16 WINAPI MapHModuleLS(HMODULE hmod) {
if
(
!
hmod
)
return
TASK_GetCurrent
()
->
hInstance
;
if
(
!
HIWORD
(
hmod
))
return
hmod
;
/* we already have a 16 bit module handle */
return
LOWORD
(
hmod
)
;
/* we already have a 16 bit module handle */
pModule
=
(
NE_MODULE
*
)
GlobalLock16
(
hFirstModule
);
while
(
pModule
)
{
if
(
pModule
->
module32
==
hmod
)
...
...
@@ -1747,7 +1747,7 @@ HMODULE WINAPI MapHModuleSL(HMODULE16 hmod) {
*/
void
WINAPI
MapHInstLS
(
CONTEXT86
*
context
)
{
context
->
Eax
=
MapHModuleLS
(
context
->
Eax
);
context
->
Eax
=
MapHModuleLS
(
(
HMODULE
)
context
->
Eax
);
}
/***************************************************************************
...
...
@@ -1756,7 +1756,7 @@ void WINAPI MapHInstLS( CONTEXT86 *context )
*/
void
WINAPI
MapHInstSL
(
CONTEXT86
*
context
)
{
context
->
Eax
=
MapHModuleSL
(
context
->
Eax
);
context
->
Eax
=
(
DWORD
)
MapHModuleSL
(
context
->
Eax
);
}
/***************************************************************************
...
...
@@ -1764,7 +1764,7 @@ void WINAPI MapHInstSL( CONTEXT86 *context )
*/
void
WINAPI
MapHInstLS_PN
(
CONTEXT86
*
context
)
{
if
(
context
->
Eax
)
context
->
Eax
=
MapHModuleLS
(
context
->
Eax
);
if
(
context
->
Eax
)
context
->
Eax
=
MapHModuleLS
(
(
HMODULE
)
context
->
Eax
);
}
/***************************************************************************
...
...
@@ -1772,5 +1772,5 @@ void WINAPI MapHInstLS_PN( CONTEXT86 *context )
*/
void
WINAPI
MapHInstSL_PN
(
CONTEXT86
*
context
)
{
if
(
context
->
Eax
)
context
->
Eax
=
MapHModuleSL
(
context
->
Eax
);
if
(
context
->
Eax
)
context
->
Eax
=
(
DWORD
)
MapHModuleSL
(
context
->
Eax
);
}
memory/registry.c
View file @
7375597f
...
...
@@ -287,7 +287,7 @@ DWORD WINAPI RegQueryInfoKeyA( HKEY hkey, LPSTR class, LPDWORD class_len, LPDWOR
*/
DWORD
WINAPI
RegCloseKey
(
HKEY
hkey
)
{
if
(
!
hkey
||
hkey
>=
0x80000000
)
return
ERROR_SUCCESS
;
if
(
!
hkey
||
hkey
>=
(
HKEY
)
0x80000000
)
return
ERROR_SUCCESS
;
return
RtlNtStatusToDosError
(
NtClose
(
hkey
)
);
}
...
...
memory/selector.c
View file @
7375597f
...
...
@@ -908,7 +908,7 @@ void WINAPI AllocMappedBuffer( CONTEXT86 *context )
context
->
Eax
=
context
->
Edi
=
0
;
else
{
buffer
[
0
]
=
handle
;
buffer
[
0
]
=
(
DWORD
)
handle
;
buffer
[
1
]
=
ptr
;
context
->
Eax
=
(
DWORD
)
ptr
;
...
...
@@ -932,7 +932,7 @@ void WINAPI FreeMappedBuffer( CONTEXT86 *context )
UnMapLS
(
buffer
[
1
]);
GlobalUnlock
(
buffer
[
0
]);
GlobalFree
(
buffer
[
0
]);
GlobalUnlock
(
(
HGLOBAL
)
buffer
[
0
]);
GlobalFree
(
(
HGLOBAL
)
buffer
[
0
]);
}
}
misc/registry.c
View file @
7375597f
...
...
@@ -1652,7 +1652,7 @@ LONG WINAPI RegReplaceKeyA( HKEY hkey, LPCSTR lpSubKey, LPCSTR lpNewFile,
*/
static
inline
void
fix_win16_hkey
(
HKEY
*
hkey
)
{
if
(
*
hkey
==
0
||
*
hkey
==
1
)
*
hkey
=
HKEY_CLASSES_ROOT
;
if
(
*
hkey
==
0
||
*
hkey
==
(
HKEY
)
1
)
*
hkey
=
HKEY_CLASSES_ROOT
;
}
/******************************************************************************
...
...
msdos/vxd.c
View file @
7375597f
...
...
@@ -1174,7 +1174,7 @@ void WINAPI VXD_Win32s( CONTEXT86 *context )
*/
{
DWORD
*
stack
=
(
DWORD
*
)
W32S_APP2WINE
(
context
->
Edx
);
HANDLE
handle
=
stack
[
0
];
HANDLE
handle
=
(
HANDLE
)
stack
[
0
];
DWORD
*
id
=
(
DWORD
*
)
W32S_APP2WINE
(
stack
[
1
]);
TRACE
(
"NtCloseSection(%lx, %lx)
\n
"
,
(
DWORD
)
handle
,
(
DWORD
)
id
);
...
...
@@ -1197,7 +1197,7 @@ void WINAPI VXD_Win32s( CONTEXT86 *context )
*/
{
DWORD
*
stack
=
(
DWORD
*
)
W32S_APP2WINE
(
context
->
Edx
);
HANDLE
handle
=
stack
[
0
];
HANDLE
handle
=
(
HANDLE
)
stack
[
0
];
HANDLE
new_handle
;
TRACE
(
"NtDupSection(%lx)
\n
"
,
(
DWORD
)
handle
);
...
...
@@ -1229,7 +1229,7 @@ void WINAPI VXD_Win32s( CONTEXT86 *context )
*/
{
DWORD
*
stack
=
(
DWORD
*
)
W32S_APP2WINE
(
context
->
Edx
);
HANDLE
SectionHandle
=
stack
[
0
];
HANDLE
SectionHandle
=
(
HANDLE
)
stack
[
0
];
DWORD
ProcessHandle
=
stack
[
1
];
/* ignored */
DWORD
*
BaseAddress
=
(
DWORD
*
)
W32S_APP2WINE
(
stack
[
2
]);
DWORD
ZeroBits
=
stack
[
3
];
...
...
@@ -1651,4 +1651,3 @@ void WINAPI VXD_Win32s( CONTEXT86 *context )
}
}
objects/palette.c
View file @
7375597f
...
...
@@ -100,9 +100,9 @@ static const PALETTEENTRY sys_pal_template[NB_RESERVED_COLORS] =
*
* Create the system palette.
*/
HPALETTE
16
PALETTE_Init
(
void
)
HPALETTE
PALETTE_Init
(
void
)
{
HPALETTE
16
hpalette
;
HPALETTE
hpalette
;
LOGPALETTE
*
palPtr
;
PALETTEOBJ
*
palObj
;
...
...
@@ -115,7 +115,7 @@ HPALETTE16 PALETTE_Init(void)
palPtr
->
palVersion
=
0x300
;
palPtr
->
palNumEntries
=
NB_RESERVED_COLORS
;
memcpy
(
palPtr
->
palPalEntry
,
sys_pal_template
,
sizeof
(
sys_pal_template
)
);
hpalette
=
CreatePalette
16
(
palPtr
);
hpalette
=
CreatePalette
(
palPtr
);
HeapFree
(
GetProcessHeap
(),
0
,
palPtr
);
palObj
=
(
PALETTEOBJ
*
)
GDI_GetObjPtr
(
hpalette
,
PALETTE_MAGIC
);
...
...
relay32/snoop.c
View file @
7375597f
...
...
@@ -184,8 +184,8 @@ SNOOP_GetProcAddress(HMODULE hmod,LPCSTR name,DWORD ordinal,FARPROC origfun) {
for
(
j
=
0
;
j
<
PE_HEADER
(
hmod
)
->
FileHeader
.
NumberOfSections
;
j
++
)
/* 0x42 is special ELF loader tag */
if
((
pe_seg
[
j
].
VirtualAddress
==
0x42
)
||
(((
DWORD
)
origfun
-
hmod
>=
pe_seg
[
j
].
VirtualAddress
)
&&
((
DWORD
)
origfun
-
hmod
<
pe_seg
[
j
].
VirtualAddress
+
(((
char
*
)
origfun
-
(
char
*
)
hmod
>=
pe_seg
[
j
].
VirtualAddress
)
&&
((
char
*
)
origfun
-
(
char
*
)
hmod
<
pe_seg
[
j
].
VirtualAddress
+
pe_seg
[
j
].
SizeOfRawData
))
)
...
...
scheduler/syslevel.c
View file @
7375597f
...
...
@@ -148,7 +148,7 @@ VOID WINAPI _KERNEL32_86(SYSLEVEL *lock)
*/
DWORD
WINAPI
_ConfirmSysLevel
(
SYSLEVEL
*
lock
)
{
if
(
lock
&&
lock
->
crst
.
OwningThread
==
GetCurrentThreadId
()
)
if
(
lock
&&
lock
->
crst
.
OwningThread
==
(
HANDLE
)
GetCurrentThreadId
()
)
return
lock
->
crst
.
RecursionCount
;
else
return
0L
;
...
...
@@ -160,7 +160,8 @@ DWORD WINAPI _ConfirmSysLevel(SYSLEVEL *lock)
*/
VOID
WINAPI
_CheckNotSysLevel
(
SYSLEVEL
*
lock
)
{
if
(
lock
&&
lock
->
crst
.
OwningThread
==
GetCurrentThreadId
()
&&
lock
->
crst
.
RecursionCount
)
if
(
lock
&&
lock
->
crst
.
OwningThread
==
(
HANDLE
)
GetCurrentThreadId
()
&&
lock
->
crst
.
RecursionCount
)
{
ERR
(
"Holding lock %p level %d
\n
"
,
lock
,
lock
->
level
);
DbgBreakPoint
();
...
...
scheduler/thread.c
View file @
7375597f
...
...
@@ -760,7 +760,7 @@ BOOL WINAPI SetThreadLocale(
#undef GetCurrentThread
HANDLE
WINAPI
GetCurrentThread
(
void
)
{
return
0xfffffffe
;
return
(
HANDLE
)
0xfffffffe
;
}
...
...
server/registry.c
View file @
7375597f
...
...
@@ -87,8 +87,8 @@ struct key_value
/* the special root keys */
#define HKEY_SPECIAL_ROOT_FIRST
HKEY_CLASSES_ROOT
#define HKEY_SPECIAL_ROOT_LAST
HKEY_DYN_DATA
#define HKEY_SPECIAL_ROOT_FIRST
((unsigned int)HKEY_CLASSES_ROOT)
#define HKEY_SPECIAL_ROOT_LAST
((unsigned int)HKEY_DYN_DATA)
#define NB_SPECIAL_ROOT_KEYS (HKEY_SPECIAL_ROOT_LAST - HKEY_SPECIAL_ROOT_FIRST + 1)
#define IS_SPECIAL_ROOT_HKEY(h) (((unsigned int)(h) >= HKEY_SPECIAL_ROOT_FIRST) && \
((unsigned int)(h) <= HKEY_SPECIAL_ROOT_LAST))
...
...
server/sock.c
View file @
7375597f
...
...
@@ -72,7 +72,7 @@ struct sock
struct
event
*
event
;
/* event object */
user_handle_t
window
;
/* window to send the message to */
unsigned
int
message
;
/* message to send */
unsigned
in
t
wparam
;
/* message wparam (socket handle) */
obj_handle_
t
wparam
;
/* message wparam (socket handle) */
int
errors
[
FD_MAX_EVENTS
];
/* event errors */
struct
sock
*
deferred
;
/* socket that waits for a deferred accept */
struct
async_queue
read_q
;
/* Queue for asynchronous reads */
...
...
@@ -260,7 +260,7 @@ static void sock_wake_up( struct sock *sock, int pollev )
if
(
sock
->
pmask
&
(
1
<<
event
))
{
unsigned
int
lparam
=
(
1
<<
event
)
|
(
sock
->
errors
[
event
]
<<
16
);
post_message
(
sock
->
window
,
sock
->
message
,
sock
->
wparam
,
lparam
);
post_message
(
sock
->
window
,
sock
->
message
,
(
unsigned
int
)
sock
->
wparam
,
lparam
);
}
}
sock
->
pmask
=
0
;
...
...
win32/newfns.c
View file @
7375597f
...
...
@@ -195,7 +195,7 @@ HANDLE WINAPI CreateMailslotA( LPCSTR lpName, DWORD nMaxMessageSize,
{
FIXME
(
"(%s,%ld,%ld,%p): stub
\n
"
,
debugstr_a
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
return
1
;
return
(
HANDLE
)
1
;
}
...
...
@@ -217,7 +217,7 @@ HANDLE WINAPI CreateMailslotW( LPCWSTR lpName, DWORD nMaxMessageSize,
{
FIXME
(
"(%s,%ld,%ld,%p): stub
\n
"
,
debugstr_w
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
return
1
;
return
(
HANDLE
)
1
;
}
...
...
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