Skip to content

Commit 6782fe6

Browse files
authored
Maintenance: Fix incorrect use of NULL to initialize DWORD (microsoft#187)
Fixes microsoft#186, found by compiling with `-Wconversion-null`
1 parent 827b896 commit 6782fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/creatwth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static PVOID FindPayloadInRemoteDetourSection(_In_ HANDLE hProcess,
191191
_In_ PVOID pvRemoteDetoursSection)
192192
{
193193
if (pcbData) {
194-
*pcbData = NULL;
194+
*pcbData = 0;
195195
}
196196

197197
PBYTE pbData = (PBYTE)pvRemoteDetoursSection;

0 commit comments

Comments
 (0)