https://git.reactos.org/?p=reactos.git;a=commitdiff;h=84513890412e309e25afeā¦
commit 84513890412e309e25afe9a703cd072625c49718
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Oct 13 18:05:34 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun May 17 17:09:05 2020 +0200
[SHELLUTILS] Fix Win32DbgPrint's result
---
sdk/include/reactos/shellutils.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sdk/include/reactos/shellutils.h b/sdk/include/reactos/shellutils.h
index 8cc51f379d4..82f2f708eee 100644
--- a/sdk/include/reactos/shellutils.h
+++ b/sdk/include/reactos/shellutils.h
@@ -30,7 +30,6 @@ Win32DbgPrint(const char *filename, int line, const char *lpFormat,
...)
char *szMsgStart;
const char *fname;
va_list vl;
- ULONG uRet;
fname = strrchr(filename, '\\');
if (fname == NULL)
@@ -48,12 +47,13 @@ Win32DbgPrint(const char *filename, int line, const char *lpFormat,
...)
szMsgStart = szMsg + sprintf(szMsg, "%s:%d: ", fname, line);
va_start(vl, lpFormat);
- uRet = (ULONG) vsprintf(szMsgStart, lpFormat, vl);
+ vsprintf(szMsgStart, lpFormat, vl);
va_end(vl);
OutputDebugStringA(szMsg);
- return uRet;
+ /* Return STATUS_SUCCESS, since we are supposed to mimic DbgPrint */
+ return 0;
}
#define DbgPrint(fmt, ...) \