[ros-diffs] [tkreuzer] 40928: cmd: Cast the result of GetProcAddress to PVOID before assigning to a function pointer. Fixes a warning on 64 bit builds.
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Fri May 15 15:09:21 CEST 2009
Author: tkreuzer
Date: Fri May 15 17:09:20 2009
New Revision: 40928
URL: http://svn.reactos.org/svn/reactos?rev=40928&view=rev
Log:
cmd: Cast the result of GetProcAddress to PVOID before assigning to a function pointer. Fixes a warning on 64 bit builds.
Modified:
branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c
Modified: branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c?rev=40928&r1=40927&r2=40928&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c [iso-8859-1] Fri May 15 17:09:20 2009
@@ -33,7 +33,7 @@
}
BOOL (WINAPI *GlobalMemoryStatusEx)(LPMEMORYSTATUSEX)
- = GetProcAddress(GetModuleHandle(_T("KERNEL32")), "GlobalMemoryStatusEx");
+ = (PVOID)GetProcAddress(GetModuleHandle(_T("KERNEL32")), "GlobalMemoryStatusEx");
if (GlobalMemoryStatusEx)
{
msex.dwLength = sizeof(MEMORYSTATUSEX);
More information about the Ros-diffs
mailing list