Corrected cast so hello5 compiles again.
This commit is contained in:
parent
e16512ba82
commit
36d10c88cd
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* This example demonstrates dynamical loading of (internal) Win32 DLLS.
|
* This example demonstrates dynamical loading of (internal) Win32 DLLS.
|
||||||
*/
|
*/
|
||||||
#include <windows.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@ int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
|
||||||
fprintf(stderr,"FATAL: could not load KERNEL32!\n");
|
fprintf(stderr,"FATAL: could not load KERNEL32!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
fnGetSystemInfo = (void (CALLBACK*)(LPSYSTEM_INFO))GetProcAddress(kernel32,"GetSystemInfo");
|
fnGetSystemInfo = (void*)GetProcAddress(kernel32,"GetSystemInfo");
|
||||||
if (!fnGetSystemInfo) {
|
if (!fnGetSystemInfo) {
|
||||||
fprintf(stderr,"FATAL: could not find GetSystemInfo!\n");
|
fprintf(stderr,"FATAL: could not find GetSystemInfo!\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue