From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Fri, 29 Jun 2018 12:17:29 +0000 (+0200) Subject: [NOTEPAD] Fix a MSVC warning about Globals.encFile (#648) X-Git-Tag: 0.4.11-dev~349 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=534a309edcac565afa82f4356e942ae9aaed3b2e [NOTEPAD] Fix a MSVC warning about Globals.encFile (#648) "...\dialog.c(365) : error C4133: 'function' : incompatible types - from 'ENCODING *' to 'int *'" CORE-7538 --- diff --git a/base/applications/notepad/dialog.c b/base/applications/notepad/dialog.c index 04e6e7b8375..e1c660b7ae6 100644 --- a/base/applications/notepad/dialog.c +++ b/base/applications/notepad/dialog.c @@ -362,7 +362,7 @@ VOID DoOpenFile(LPCTSTR szFileName) goto done; } - if (!ReadText(hFile, (LPWSTR *)&pszText, &dwTextLen, &Globals.encFile, &Globals.iEoln)) + if (!ReadText(hFile, (LPWSTR *)&pszText, &dwTextLen, (int *)&Globals.encFile, &Globals.iEoln)) { ShowLastError(); goto done;