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
9b0b1e07
Commit
9b0b1e07
authored
Jan 14, 2003
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove (POINTER)NULL casts.
parent
bf9390e7
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
66 additions
and
67 deletions
+66
-67
factory.c
dlls/avifil32/factory.c
+2
-2
commctrl.c
dlls/comctl32/commctrl.c
+8
-8
listview.c
dlls/comctl32/listview.c
+1
-1
filedlg95.c
dlls/commdlg/filedlg95.c
+1
-1
access.c
dlls/imagehlp/access.c
+6
-6
debug.c
dlls/imagehlp/debug.c
+2
-2
imagehlp_main.c
dlls/imagehlp/imagehlp_main.c
+2
-2
path.c
dlls/kernel/tests/path.c
+4
-4
internal.c
dlls/msacm/internal.c
+1
-1
msacm32_main.c
dlls/msacm/msacm32_main.c
+1
-1
console.c
dlls/msvcrt/console.c
+2
-2
msvideo_main.c
dlls/msvideo/msvideo_main.c
+1
-1
clipboard.c
dlls/ole32/clipboard.c
+1
-1
richedit.c
dlls/richedit/richedit.c
+3
-3
rpcrt4_main.c
dlls/rpcrt4/rpcrt4_main.c
+1
-1
rpcss_np_client.c
dlls/rpcrt4/rpcss_np_client.c
+1
-1
dialogs.c
dlls/shell32/dialogs.c
+5
-5
shell32_main.c
dlls/shell32/shell32_main.c
+1
-1
shlexec.c
dlls/shell32/shlexec.c
+1
-1
shpolicy.c
dlls/shell32/shpolicy.c
+1
-1
shlfileop.c
dlls/shell32/tests/shlfileop.c
+5
-5
istream.c
dlls/shlwapi/istream.c
+1
-1
init.c
dlls/wineps/init.c
+2
-2
ftp.c
dlls/wininet/ftp.c
+1
-1
sock.c
dlls/winsock/tests/sock.c
+2
-2
info.c
dlls/winspool/info.c
+2
-2
global.c
memory/global.c
+2
-2
regtest.c
programs/regtest/regtest.c
+1
-2
np_server.c
programs/rpcss/np_server.c
+2
-2
rpcss_main.c
programs/rpcss/rpcss_main.c
+1
-1
hlpfile.c
programs/winhelp/hlpfile.c
+1
-1
newfns.c
win32/newfns.c
+1
-1
No files found.
dlls/avifil32/factory.c
View file @
9b0b1e07
...
...
@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(avifile);
#include "initguid.h"
#include "avifile_private.h"
HMODULE
AVIFILE_hModule
=
(
HMODULE
)
NULL
;
HMODULE
AVIFILE_hModule
=
NULL
;
BOOL
AVIFILE_bLocked
=
FALSE
;
UINT
AVIFILE_uUseCount
=
0
;
...
...
@@ -204,7 +204,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
if
(
AVIFILE_hModule
==
(
HMODULE
)
NULL
)
if
(
AVIFILE_hModule
==
NULL
)
AVIFILE_hModule
=
(
HMODULE
)
hInstDll
;
break
;
case
DLL_PROCESS_DETACH
:
...
...
dlls/comctl32/commctrl.c
View file @
9b0b1e07
...
...
@@ -110,14 +110,14 @@ extern void UPDOWN_Register(void);
extern
void
UPDOWN_Unregister
(
void
);
HANDLE
COMCTL32_hHeap
=
(
HANDLE
)
NULL
;
LPSTR
COMCTL32_aSubclass
=
(
LPSTR
)
NULL
;
HANDLE
COMCTL32_hHeap
=
NULL
;
LPSTR
COMCTL32_aSubclass
=
NULL
;
HMODULE
COMCTL32_hModule
=
0
;
LANGID
COMCTL32_uiLang
=
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_NEUTRAL
);
HBRUSH
COMCTL32_hPattern55AABrush
=
(
HANDLE
)
NULL
;
HBRUSH
COMCTL32_hPattern55AABrush
=
NULL
;
COMCTL32_SysColor
comctl32_color
;
static
HBITMAP
COMCTL32_hPattern55AABitmap
=
(
HANDLE
)
NULL
;
static
HBITMAP
COMCTL32_hPattern55AABitmap
=
NULL
;
static
const
WORD
wPattern55AA
[]
=
{
...
...
@@ -203,19 +203,19 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
/* delete local pattern brush */
DeleteObject
(
COMCTL32_hPattern55AABrush
);
COMCTL32_hPattern55AABrush
=
(
HANDLE
)
NULL
;
COMCTL32_hPattern55AABrush
=
NULL
;
DeleteObject
(
COMCTL32_hPattern55AABitmap
);
COMCTL32_hPattern55AABitmap
=
(
HANDLE
)
NULL
;
COMCTL32_hPattern55AABitmap
=
NULL
;
/* delete global subclassing atom */
GlobalDeleteAtom
(
LOWORD
(
COMCTL32_aSubclass
));
TRACE
(
"Subclassing atom deleted: %p
\n
"
,
COMCTL32_aSubclass
);
COMCTL32_aSubclass
=
(
LPSTR
)
NULL
;
COMCTL32_aSubclass
=
NULL
;
/* destroy private heap */
HeapDestroy
(
COMCTL32_hHeap
);
TRACE
(
"Heap destroyed: %p
\n
"
,
COMCTL32_hHeap
);
COMCTL32_hHeap
=
(
HANDLE
)
NULL
;
COMCTL32_hHeap
=
NULL
;
break
;
}
...
...
dlls/comctl32/listview.c
View file @
9b0b1e07
...
...
@@ -7045,7 +7045,7 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
LISTVIEW_SaveTextMetrics
(
infoPtr
);
/* create header */
infoPtr
->
hwndHeader
=
CreateWindowW
(
WC_HEADERW
,
(
LPCWSTR
)
NULL
,
infoPtr
->
hwndHeader
=
CreateWindowW
(
WC_HEADERW
,
NULL
,
WS_CHILD
|
HDS_HORZ
|
(
DWORD
)((
LVS_NOSORTHEADER
&
lpcs
->
style
)
?
0
:
HDS_BUTTONS
),
0
,
0
,
0
,
0
,
hwnd
,
NULL
,
lpcs
->
hInstance
,
NULL
);
...
...
dlls/commdlg/filedlg95.c
View file @
9b0b1e07
...
...
@@ -1028,7 +1028,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
GetWindowRect
(
GetDlgItem
(
hwnd
,
IDC_TOOLBARSTATIC
),
&
rectTB
);
MapWindowPoints
(
0
,
hwnd
,(
LPPOINT
)
&
rectTB
,
2
);
fodInfos
->
DlgInfos
.
hwndTB
=
CreateWindowExA
(
0
,
TOOLBARCLASSNAMEA
,
(
LPSTR
)
NULL
,
fodInfos
->
DlgInfos
.
hwndTB
=
CreateWindowExA
(
0
,
TOOLBARCLASSNAMEA
,
NULL
,
WS_CHILD
|
WS_GROUP
|
TBSTYLE_TOOLTIPS
|
CCS_NODIVIDER
|
CCS_NORESIZE
,
0
,
0
,
150
,
26
,
hwnd
,
(
HMENU
)
IDC_TOOLBAR
,
COMMDLG_hInstance32
,
NULL
);
...
...
dlls/imagehlp/access.c
View file @
9b0b1e07
...
...
@@ -208,9 +208,9 @@ BOOL WINAPI MapAndLoad(
BOOL
bDotDll
,
BOOL
bReadOnly
)
{
CHAR
szFileName
[
MAX_PATH
];
HANDLE
hFile
=
(
HANDLE
)
NULL
;
HANDLE
hFileMapping
=
(
HANDLE
)
NULL
;
HMODULE
hModule
=
(
HMODULE
)
NULL
;
HANDLE
hFile
=
NULL
;
HANDLE
hFileMapping
=
NULL
;
HMODULE
hModule
=
NULL
;
PIMAGE_NT_HEADERS
pNtHeader
=
NULL
;
/* PathCombine(&szFileName, pszDllPath, pszImageName); */
...
...
@@ -219,7 +219,7 @@ BOOL WINAPI MapAndLoad(
/* FIXME: Check if the file already loaded (use IMAGEHLP_pFirstLoadedImage) */
if
(
!
(
hFile
=
CreateFileA
(
szFileName
,
GENERIC_READ
,
1
,
/* FIXME: FILE_SHARE_READ not defined */
NULL
,
OPEN_EXISTING
,
0
,
(
HANDLE
)
NULL
)))
NULL
,
OPEN_EXISTING
,
0
,
NULL
)))
{
SetLastError
(
ERROR_FILE_NOT_FOUND
);
goto
Error
;
...
...
@@ -234,7 +234,7 @@ BOOL WINAPI MapAndLoad(
goto
Error
;
}
CloseHandle
(
hFile
);
hFile
=
(
HANDLE
)
NULL
;
hFile
=
NULL
;
if
(
!
(
hModule
=
(
HMODULE
)
MapViewOfFile
(
hFileMapping
,
FILE_MAP_READ
,
0
,
0
,
0
)))
...
...
@@ -246,7 +246,7 @@ BOOL WINAPI MapAndLoad(
}
CloseHandle
(
hFileMapping
);
hFileMapping
=
(
HANDLE
)
NULL
;
hFileMapping
=
NULL
;
pLoadedImage
=
(
PLOADED_IMAGE
)
HeapAlloc
(
IMAGEHLP_hHeap
,
0
,
sizeof
(
LOADED_IMAGE
)
...
...
dlls/imagehlp/debug.c
View file @
9b0b1e07
...
...
@@ -37,7 +37,7 @@ HANDLE WINAPI FindDebugInfoFile(
debugstr_a
(
DebugFilePath
)
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
(
HANDLE
)
NULL
;
return
NULL
;
}
/***********************************************************************
...
...
@@ -51,7 +51,7 @@ HANDLE WINAPI FindExecutableImage(
debugstr_a
(
ImageFilePath
)
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
(
HANDLE
)
NULL
;
return
NULL
;
}
/***********************************************************************
...
...
dlls/imagehlp/imagehlp_main.c
View file @
9b0b1e07
...
...
@@ -28,7 +28,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(imagehlp);
/**********************************************************************/
HANDLE
IMAGEHLP_hHeap
=
(
HANDLE
)
NULL
;
HANDLE
IMAGEHLP_hHeap
=
NULL
;
static
API_VERSION
IMAGEHLP_ApiVersion
=
{
4
,
0
,
0
,
5
};
...
...
@@ -44,7 +44,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
break
;
case
DLL_PROCESS_DETACH
:
HeapDestroy
(
IMAGEHLP_hHeap
);
IMAGEHLP_hHeap
=
(
HANDLE
)
NULL
;
IMAGEHLP_hHeap
=
NULL
;
break
;
case
DLL_THREAD_ATTACH
:
break
;
...
...
dlls/kernel/tests/path.c
View file @
9b0b1e07
...
...
@@ -388,22 +388,22 @@ static void test_InitPathA(CHAR *newdir, CHAR *curDrive, CHAR *otherDrive)
ok
(
CreateDirectoryA
(
tmpstr
,
NULL
),
"CreateDirectoryA failed"
);
sprintf
(
tmpstr
,
"%s
\\
%s
\\
%s"
,
newdir
,
SHORTDIR
,
SHORTFILE
);
hndl
=
CreateFileA
(
tmpstr
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
(
HANDLE
)
NULL
);
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
hndl
!=
INVALID_HANDLE_VALUE
,
"CreateFileA failed"
);
ok
(
CloseHandle
(
hndl
),
"CloseHandle failed"
);
sprintf
(
tmpstr
,
"%s
\\
%s
\\
%s"
,
newdir
,
SHORTDIR
,
LONGFILE
);
hndl
=
CreateFileA
(
tmpstr
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
(
HANDLE
)
NULL
);
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
hndl
!=
INVALID_HANDLE_VALUE
,
"CreateFileA failed"
);
ok
(
CloseHandle
(
hndl
),
"CloseHandle failed"
);
sprintf
(
tmpstr
,
"%s
\\
%s
\\
%s"
,
newdir
,
LONGDIR
,
SHORTFILE
);
hndl
=
CreateFileA
(
tmpstr
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
(
HANDLE
)
NULL
);
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
hndl
!=
INVALID_HANDLE_VALUE
,
"CreateFileA failed"
);
ok
(
CloseHandle
(
hndl
),
"CloseHandle failed"
);
sprintf
(
tmpstr
,
"%s
\\
%s
\\
%s"
,
newdir
,
LONGDIR
,
LONGFILE
);
hndl
=
CreateFileA
(
tmpstr
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
(
HANDLE
)
NULL
);
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
hndl
!=
INVALID_HANDLE_VALUE
,
"CreateFileA failed"
);
ok
(
CloseHandle
(
hndl
),
"CloseHandle failed"
);
}
...
...
dlls/msacm/internal.c
View file @
9b0b1e07
...
...
@@ -39,7 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msacm);
/**********************************************************************/
HANDLE
MSACM_hHeap
=
(
HANDLE
)
NULL
;
HANDLE
MSACM_hHeap
=
NULL
;
PWINE_ACMDRIVERID
MSACM_pFirstACMDriverID
=
NULL
;
PWINE_ACMDRIVERID
MSACM_pLastACMDriverID
=
NULL
;
...
...
dlls/msacm/msacm32_main.c
View file @
9b0b1e07
...
...
@@ -51,7 +51,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_DETACH
:
MSACM_UnregisterAllDrivers
();
HeapDestroy
(
MSACM_hHeap
);
MSACM_hHeap
=
(
HANDLE
)
NULL
;
MSACM_hHeap
=
NULL
;
MSACM_hInstance32
=
NULL
;
break
;
case
DLL_THREAD_ATTACH
:
...
...
dlls/msvcrt/console.c
View file @
9b0b1e07
...
...
@@ -51,11 +51,11 @@ void msvcrt_init_console(void)
/* FIXME: Should be initialised with:
* CreateFileA("CONIN$", GENERIC_READ, FILE_SHARE_READ,
* NULL, OPEN_EXISTING, 0,
(HANDLE)
NULL);
* NULL, OPEN_EXISTING, 0, NULL);
*/
MSVCRT_console_out
=
CreateFileA
(
"CONOUT$"
,
GENERIC_WRITE
,
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
(
HANDLE
)
NULL
);
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
((
MSVCRT_console_in
==
INVALID_HANDLE_VALUE
)
||
(
MSVCRT_console_out
==
INVALID_HANDLE_VALUE
))
...
...
dlls/msvideo/msvideo_main.c
View file @
9b0b1e07
...
...
@@ -687,7 +687,7 @@ HANDLE VFWAPI ICImageCompress(
FIXME
(
"(%p,%08x,%p,%p,%p,%ld,%p)
\n
"
,
hic
,
uiFlags
,
lpbiIn
,
lpBits
,
lpbiOut
,
lQuality
,
plSize
);
return
(
HANDLE
)
NULL
;
return
NULL
;
}
/***********************************************************************
...
...
dlls/ole32/clipboard.c
View file @
9b0b1e07
...
...
@@ -398,7 +398,7 @@ HRESULT WINAPI OleSetClipboard(IDataObject* pDataObj)
GetClipboardFormatNameA
(
rgelt
.
cfFormat
,
szFmtName
,
sizeof
(
szFmtName
)
-
1
)
?
szFmtName
:
""
);
SetClipboardData
(
rgelt
.
cfFormat
,
(
HANDLE
)
NULL
);
SetClipboardData
(
rgelt
.
cfFormat
,
NULL
);
}
}
IEnumFORMATETC_Release
(
penumFormatetc
);
...
...
dlls/richedit/richedit.c
View file @
9b0b1e07
...
...
@@ -42,8 +42,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
richedit
);
HANDLE
RICHED32_hHeap
=
(
HANDLE
)
NULL
;
/* LPSTR RICHED32_aSubclass =
(LPSTR)
NULL; */
HANDLE
RICHED32_hHeap
=
NULL
;
/* LPSTR RICHED32_aSubclass = NULL; */
#define DPRINTF_EDIT_MSG32(str) \
TRACE(\
...
...
@@ -81,7 +81,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
/* unregister all common control classes */
RICHED32_Unregister
();
HeapDestroy
(
RICHED32_hHeap
);
RICHED32_hHeap
=
(
HANDLE
)
NULL
;
RICHED32_hHeap
=
NULL
;
break
;
}
return
TRUE
;
...
...
dlls/rpcrt4/rpcrt4_main.c
View file @
9b0b1e07
...
...
@@ -174,7 +174,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_DETACH
:
CloseHandle
(
master_mutex
);
master_mutex
=
(
HANDLE
)
NULL
;
master_mutex
=
NULL
;
break
;
}
...
...
dlls/rpcrt4/rpcss_np_client.c
View file @
9b0b1e07
...
...
@@ -47,7 +47,7 @@ HANDLE RPCRT4_RpcssNPConnect(void)
case
WAIT_TIMEOUT
:
default:
ERR
(
"This should never happen: couldn't enter mutex.
\n
"
);
return
(
HANDLE
)
NULL
;
return
NULL
;
}
/* try to open the client side of the named pipe. */
...
...
dlls/shell32/dialogs.c
View file @
9b0b1e07
...
...
@@ -189,7 +189,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
case
12288
:
{
HMODULE
hComdlg
=
(
HMODULE
)
NULL
;
HMODULE
hComdlg
=
NULL
;
LPFNOFN
ofnProc
=
NULL
;
static
char
szFName
[
1024
]
=
""
,
szFileTitle
[
256
]
=
""
,
szInitDir
[
768
]
=
""
;
static
OPENFILENAMEA
ofn
=
...
...
@@ -198,7 +198,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
NULL
,
NULL
,
"Executable Files
\0
*.exe
\0
All Files
\0
*.*
\0\0\0\0
"
,
(
LPSTR
)
NULL
,
NULL
,
0
,
0
,
szFName
,
...
...
@@ -210,15 +210,15 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
OFN_ENABLESIZING
|
OFN_FILEMUSTEXIST
|
OFN_HIDEREADONLY
|
OFN_PATHMUSTEXIST
,
0
,
0
,
(
LPCSTR
)
NULL
,
NULL
,
0
,
(
LPOFNHOOKPROC
)
NULL
,
(
LPCSTR
)
NULL
NULL
}
;
ofn
.
hwndOwner
=
hwnd
;
if
(
(
HMODULE
)
NULL
==
(
hComdlg
=
LoadLibraryExA
(
"comdlg32"
,
(
HANDLE
)
NULL
,
0
)))
if
(
NULL
==
(
hComdlg
=
LoadLibraryExA
(
"comdlg32"
,
NULL
,
0
)))
{
MessageBoxA
(
hwnd
,
"Unable to display dialog box (LoadLibraryEx) !"
,
"Nix"
,
MB_OK
|
MB_ICONEXCLAMATION
)
;
return
TRUE
;
...
...
dlls/shell32/shell32_main.c
View file @
9b0b1e07
...
...
@@ -96,7 +96,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
size
*=
2
;
hargv
=
GlobalReAlloc
(
hargv
,
size
,
0
);
argv
=
GlobalLock
(
hargv
);
}
while
(
GetModuleFileNameW
(
(
HMODULE
)
0
,
(
LPWSTR
)(
argv
+
1
),
size
-
sizeof
(
LPWSTR
))
==
0
);
}
while
(
GetModuleFileNameW
(
0
,
(
LPWSTR
)(
argv
+
1
),
size
-
sizeof
(
LPWSTR
))
==
0
);
argv
[
0
]
=
(
LPWSTR
)(
argv
+
1
);
if
(
numargs
)
*
numargs
=
2
;
...
...
dlls/shell32/shlexec.c
View file @
9b0b1e07
...
...
@@ -563,7 +563,7 @@ BOOL WINAPI ShellExecuteExA32 (LPSHELLEXECUTEINFOA sei, SHELL_ExecuteA1632 execf
debugstr_a
(
sei
->
lpDirectory
),
sei
->
nShow
,
(
sei
->
fMask
&
SEE_MASK_CLASSNAME
)
?
debugstr_a
(
sei
->
lpClass
)
:
"not used"
);
sei
->
hProcess
=
(
HANDLE
)
NULL
;
sei
->
hProcess
=
NULL
;
ZeroMemory
(
szApplicationName
,
MAX_PATH
);
if
(
sei
->
lpFile
)
strcpy
(
szApplicationName
,
sei
->
lpFile
);
...
...
dlls/shell32/shpolicy.c
View file @
9b0b1e07
...
...
@@ -574,7 +574,7 @@ BOOL WINAPI SHInitRestricted(LPSTR inpRegKey, LPSTR parm2)
key string, then pass. Otherwise return 0.
*/
if
(
inpRegKey
!=
(
LPSTR
)
NULL
)
if
(
inpRegKey
!=
NULL
)
{
if
(
lstrcmpiA
(
inpRegKey
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Policies"
))
{
...
...
dlls/shell32/tests/shlfileop.c
View file @
9b0b1e07
...
...
@@ -36,7 +36,7 @@ void createTestFile(CHAR *name)
DWORD
written
;
CHAR
msg
[
MAX_PATH
];
file
=
CreateFileA
(
name
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
(
HANDLE
)
NULL
);
file
=
CreateFileA
(
name
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
sprintf
(
msg
,
"Failure to open file %s"
,
name
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
msg
);
WriteFile
(
file
,
name
,
strlen
(
name
),
&
written
,
NULL
);
...
...
@@ -109,7 +109,7 @@ void test_delete(void)
sprintf
(
buf
,
"%s
\\
%s"
,
CURR_DIR
,
"test?.txt"
);
buf
[
strlen
(
buf
)
+
1
]
=
'\0'
;
shfo
.
hwnd
=
(
HANDLE
)
NULL
;
shfo
.
hwnd
=
NULL
;
shfo
.
wFunc
=
FO_DELETE
;
shfo
.
pFrom
=
buf
;
shfo
.
pTo
=
"
\0
"
;
...
...
@@ -153,7 +153,7 @@ void test_rename()
CHAR
from
[
MAX_PATH
];
CHAR
to
[
MAX_PATH
];
shfo
.
hwnd
=
(
HANDLE
)
NULL
;
shfo
.
hwnd
=
NULL
;
shfo
.
wFunc
=
FO_RENAME
;
shfo
.
pFrom
=
from
;
shfo
.
pTo
=
to
;
...
...
@@ -212,7 +212,7 @@ void test_copy(void)
CHAR
to
[
MAX_PATH
];
FILEOP_FLAGS
tmp_flags
;
shfo
.
hwnd
=
(
HANDLE
)
NULL
;
shfo
.
hwnd
=
NULL
;
shfo
.
wFunc
=
FO_COPY
;
shfo
.
pFrom
=
from
;
shfo
.
pTo
=
to
;
...
...
@@ -296,7 +296,7 @@ void test_move(void)
CHAR
from
[
MAX_PATH
];
CHAR
to
[
MAX_PATH
];
shfo
.
hwnd
=
(
HANDLE
)
NULL
;
shfo
.
hwnd
=
NULL
;
shfo
.
wFunc
=
FO_MOVE
;
shfo
.
pFrom
=
from
;
shfo
.
pTo
=
to
;
...
...
dlls/shlwapi/istream.c
View file @
9b0b1e07
...
...
@@ -444,7 +444,7 @@ HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR lpszPath, DWORD dwMode,
/* Open HANDLE to file */
hFile
=
CreateFileW
(
lpszPath
,
dwAccess
,
dwShare
,
NULL
,
dwCreate
,
dwAttributes
,
(
HANDLE
)
0
);
dwAttributes
,
0
);
if
(
hFile
==
INVALID_HANDLE_VALUE
)
{
...
...
dlls/wineps/init.c
View file @
9b0b1e07
...
...
@@ -123,7 +123,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
case
DLL_PROCESS_ATTACH
:
PSDRV_Heap
=
HeapCreate
(
0
,
0x10000
,
0
);
if
(
PSDRV_Heap
==
(
HANDLE
)
NULL
)
if
(
PSDRV_Heap
==
NULL
)
return
FALSE
;
if
(
PSDRV_GetFontMetrics
()
==
FALSE
)
{
...
...
@@ -132,7 +132,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
}
PSDRV_DefaultFont
=
CreateFontIndirectA
(
&
DefaultLogFont
);
if
(
PSDRV_DefaultFont
==
(
HANDLE
)
NULL
)
{
if
(
PSDRV_DefaultFont
==
NULL
)
{
HeapDestroy
(
PSDRV_Heap
);
return
FALSE
;
}
...
...
dlls/wininet/ftp.c
View file @
9b0b1e07
...
...
@@ -192,7 +192,7 @@ BOOL WINAPI FtpPutFileA(HINTERNET hConnect, LPCSTR lpszLocalFile,
BOOL
WINAPI
FTP_FtpPutFileA
(
HINTERNET
hConnect
,
LPCSTR
lpszLocalFile
,
LPCSTR
lpszNewRemoteFile
,
DWORD
dwFlags
,
DWORD
dwContext
)
{
HANDLE
hFile
=
(
HANDLE
)
NULL
;
HANDLE
hFile
=
NULL
;
BOOL
bSuccess
=
FALSE
;
LPWININETAPPINFOA
hIC
=
NULL
;
LPWININETFTPSESSIONA
lpwfs
=
(
LPWININETFTPSESSIONA
)
hConnect
;
...
...
dlls/winsock/tests/sock.c
View file @
9b0b1e07
...
...
@@ -579,7 +579,7 @@ static void StartServer (LPTHREAD_START_ROUTINE routine,
{
par
->
general
=
general
;
thread
[
0
]
=
CreateThread
(
NULL
,
0
,
routine
,
par
,
0
,
&
thread_id
[
0
]
);
ok
(
thread
[
0
]
!=
(
HANDLE
)
NULL
,
"Failed to create server thread"
);
ok
(
thread
[
0
]
!=
NULL
,
"Failed to create server thread"
);
}
static
void
StartClients
(
LPTHREAD_START_ROUTINE
routine
,
...
...
@@ -591,7 +591,7 @@ static void StartClients (LPTHREAD_START_ROUTINE routine,
{
client_id
=
i
-
1
;
thread
[
i
]
=
CreateThread
(
NULL
,
0
,
routine
,
par
,
0
,
&
thread_id
[
i
]
);
ok
(
thread
[
i
]
!=
(
HANDLE
)
NULL
,
"Failed to create client thread"
);
ok
(
thread
[
i
]
!=
NULL
,
"Failed to create client thread"
);
/* Make sure the client is up and running */
WaitForSingleObject
(
client_ready
[
client_id
],
INFINITE
);
};
...
...
dlls/winspool/info.c
View file @
9b0b1e07
...
...
@@ -3125,7 +3125,7 @@ DWORD WINAPI EnumPrinterDataExW(HANDLE hPrinter, LPCWSTR pKeyName,
++
cbMaxValueNameLen
;
/* allow for trailing '\0' */
hHeap
=
GetProcessHeap
();
if
(
hHeap
==
(
HANDLE
)
NULL
)
if
(
hHeap
==
NULL
)
{
ERR
(
"GetProcessHeap failed
\n
"
);
r
=
RegCloseKey
(
hkSubKey
);
...
...
@@ -3314,7 +3314,7 @@ DWORD WINAPI EnumPrinterDataExA(HANDLE hPrinter, LPCSTR pKeyName,
}
hHeap
=
GetProcessHeap
();
if
(
hHeap
==
(
HANDLE
)
NULL
)
if
(
hHeap
==
NULL
)
{
ERR
(
"GetProcessHeap failed
\n
"
);
return
ERROR_OUTOFMEMORY
;
...
...
memory/global.c
View file @
9b0b1e07
...
...
@@ -475,7 +475,7 @@ LPVOID WINAPI GlobalLock16(
)
{
if
(
!
handle
)
return
0
;
if
(
!
VALID_HANDLE
(
handle
))
return
(
LPVOID
)
0
;
return
0
;
GET_ARENA_PTR
(
handle
)
->
lockCount
++
;
return
(
LPVOID
)
GET_ARENA_PTR
(
handle
)
->
base
;
}
...
...
@@ -1117,7 +1117,7 @@ LPVOID WINAPI GlobalLock(
else
{
WARN
(
"invalid handle
\n
"
);
palloc
=
(
LPVOID
)
NULL
;
palloc
=
NULL
;
SetLastError
(
ERROR_INVALID_HANDLE
);
}
/* HeapUnlock(GetProcessHeap()); */
;
...
...
programs/regtest/regtest.c
View file @
9b0b1e07
...
...
@@ -363,7 +363,7 @@ void TestNotifyChangeKeyValue()
long
lSts
;
HANDLE
hEvent
;
hEvent
=
(
HANDLE
)
0
;
hEvent
=
0
;
lSts
=
RegNotifyChangeKeyValue
((
HKEY
)
2
,
TRUE
,
REG_NOTIFY_CHANGE_NAME
,
0
,
0
);
if
(
lSts
!=
ERROR_INVALID_HANDLE
)
xERROR
(
1
,
lSts
);
...
...
@@ -695,4 +695,3 @@ int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
return
0
;
}
programs/rpcss/np_server.c
View file @
9b0b1e07
...
...
@@ -352,7 +352,7 @@ HANDLE RPCSS_NPConnect(void)
case
WAIT_TIMEOUT
:
default:
WINE_ERR
(
"This should never happen: couldn't enter mutex.
\n
"
);
return
(
HANDLE
)
NULL
;
return
NULL
;
}
/* try to open the client side of the named pipe. */
...
...
@@ -516,7 +516,7 @@ BOOL RPCSS_BecomePipeServer(void)
NULL
,
/* no security attribute */
0
,
/* default stack size */
(
LPTHREAD_START_ROUTINE
)
NPMainWorkThread
,
(
LPVOID
)
NULL
,
/* thread parameter */
NULL
,
/* thread parameter */
0
,
/* not suspended */
&
threadid
/* returns thread ID (not used) */
);
...
...
programs/rpcss/rpcss_main.c
View file @
9b0b1e07
...
...
@@ -210,7 +210,7 @@ BOOL RPCSS_Shutdown(void)
if
(
!
CloseHandle
(
master_mutex
))
WINE_WARN
(
"Failed to release master mutex
\n
"
);
master_mutex
=
(
HANDLE
)
NULL
;
master_mutex
=
NULL
;
return
TRUE
;
}
...
...
programs/winhelp/hlpfile.c
View file @
9b0b1e07
...
...
@@ -1202,7 +1202,7 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile)
WINE_FIXME
(
"Too high face ref (%u/%u)
\n
"
,
idx
,
face_num
);
strcpy
(
hlpfile
->
fonts
[
i
].
LogFont
.
lfFaceName
,
"Helv"
);
}
hlpfile
->
fonts
[
i
].
hFont
=
(
HANDLE
)
0
;
hlpfile
->
fonts
[
i
].
hFont
=
0
;
hlpfile
->
fonts
[
i
].
color
=
RGB
(
ref
[
dscr_offset
+
i
*
11
+
5
],
ref
[
dscr_offset
+
i
*
11
+
6
],
ref
[
dscr_offset
+
i
*
11
+
7
]);
...
...
win32/newfns.c
View file @
9b0b1e07
...
...
@@ -297,7 +297,7 @@ HANDLE hExistingCompletionPort, DWORD dwCompletionKey,
DWORD
dwNumberOfConcurrentThreads
)
{
FIXME
(
"(%p, %p, %08lx, %08lx): stub.
\n
"
,
hFileHandle
,
hExistingCompletionPort
,
dwCompletionKey
,
dwNumberOfConcurrentThreads
);
return
(
HANDLE
)
NULL
;
return
NULL
;
}
/******************************************************************************
...
...
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