Use MAX_PATH (from windef.h) insted of _MAX_PATH (from stdlib.h in mingw
2002-08-26 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH (from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
This commit is contained in:
committed by
Tor Lillqvist
parent
f1b5dac5ac
commit
99e112a7a4
@@ -1,3 +1,9 @@
|
||||
2002-08-26 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH
|
||||
(from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and
|
||||
MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
|
||||
|
||||
2002-08-25 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2002-08-26 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH
|
||||
(from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and
|
||||
MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
|
||||
|
||||
2002-08-25 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2002-08-26 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH
|
||||
(from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and
|
||||
MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
|
||||
|
||||
2002-08-25 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2002-08-26 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH
|
||||
(from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and
|
||||
MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
|
||||
|
||||
2002-08-25 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2002-08-26 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH
|
||||
(from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and
|
||||
MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
|
||||
|
||||
2002-08-25 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2002-08-26 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH
|
||||
(from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and
|
||||
MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
|
||||
|
||||
2002-08-25 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
|
||||
|
||||
@@ -307,14 +307,14 @@ RegisterGdkClass (GdkWindowType wtype)
|
||||
/* initialize once! */
|
||||
if (0 == hAppIcon)
|
||||
{
|
||||
gchar sLoc [_MAX_PATH+1];
|
||||
gchar sLoc [MAX_PATH+1];
|
||||
|
||||
if (0 != GetModuleFileName (gdk_app_hmodule, sLoc, _MAX_PATH))
|
||||
if (0 != GetModuleFileName (gdk_app_hmodule, sLoc, MAX_PATH))
|
||||
{
|
||||
hAppIcon = ExtractIcon (gdk_app_hmodule, sLoc, 0);
|
||||
if (0 == hAppIcon)
|
||||
{
|
||||
if (0 != GetModuleFileName (gdk_dll_hinstance, sLoc, _MAX_PATH))
|
||||
if (0 != GetModuleFileName (gdk_dll_hinstance, sLoc, MAX_PATH))
|
||||
hAppIcon = ExtractIcon (gdk_dll_hinstance, sLoc, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user