X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47df2b8c540f17c55464719d0da74c0b43a29515..a536e411022b21280532c9daadc806a437fbb4c6:/src/os2/fontutil.cpp diff --git a/src/os2/fontutil.cpp b/src/os2/fontutil.cpp index bb4490f96c..86f9063dfe 100644 --- a/src/os2/fontutil.cpp +++ b/src/os2/fontutil.cpp @@ -361,6 +361,7 @@ void wxFillLogFont( STR8 azNames[255]; long alIds[255]; + memset(alIds, 0, sizeof(long) * 255); if(!::GpiQuerySetIds( *phPS ,lNumLids ,alTypes @@ -372,7 +373,8 @@ void wxFillLogFont( ::WinReleasePS(*phPS); return; } - + if (*pflId == 0L) + *pflId = 1L; for(unsigned long LCNum = 0; LCNum < lNumLids; LCNum++) if(alIds[LCNum] == *pflId) ++*pflId;