]> granicus.if.org Git - graphviz/commitdiff
lneato: Windows: correct argument types to WinMain
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 15 Jan 2022 16:38:24 +0000 (17:38 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 17 Jan 2022 16:37:35 +0000 (17:37 +0100)
Fixes these warnings:

C:\GitLab-Runner\builds\magjac\graphviz\cmd\lneato\mswin32\lneato.c(27,28): warning C4028: formal parameter 1 different from declaration [C:\GitLab-Runner\builds\magjac\graphviz\cmd\lneato\lneato.vcxproj]
C:\GitLab-Runner\builds\magjac\graphviz\cmd\lneato\mswin32\lneato.c(27,46): warning C4028: formal parameter 2 different from declaration [C:\GitLab-Runner\builds\magjac\graphviz\cmd\lneato\lneato.vcxproj]

See
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-winmain.

cmd/lneato/mswin32/lneato.c

index b9226ce8ae726662639e9cd3f79ec67ab1a9bbc4..7d1c48b8c35081f0bf9ad2b2141cfb735b13ac86 100644 (file)
@@ -24,7 +24,7 @@ static char *shellpath;
 static char *buildpath (char *);
 static void panic (char *, int, char *, char *, ...);
 
-int WINAPI WinMain (HANDLE hInstance, HANDLE hPrevInstance,
+int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
         LPSTR lpCmdLine, int nCmdShow) {
     HANDLE handle;
     char cmd[256];