Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 419 → Rev 420

/trunk/read.c
63,7 → 63,7
if(c==CR || c==LF){ /* detected end of line */
 
/* look ahead to see if we need to skip a line feed (DOS EOL convention) */
if(c == CR && *p == LF && p < dataend)
if(c == CR && c == LF && p < dataend)
++p;
 
linebuf[lineptr] = 0; /* add terminating NUL to line buffer */
/trunk/ui_win.c
308,6 → 308,7
PlatformData *p;
WNDCLASS clx;
INT_PTR res;
Boolean fakeTrackbar = 0;
 
// ALL Versions of Windows show the confusing error message "Invalid Cursor Handle" when DialogBoxParamA
// tries to open a dialog with a control which class is unknown.
327,6 → 328,8
strcpy(s, "RegisterClass failed: ");
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + strlen(s), 0x100, NULL);
dbg(s);
} else {
fakeTrackbar = 1;
}
}
 
367,6 → 370,9
// Clean up after the dialog has been closed
UnregisterClass("Preview", hDllInstance);
UnregisterClass("Caution", hDllInstance);
if (fakeTrackbar) {
UnregisterClass("msctls_trackbar32", hDllInstance);
}
 
return res == IDOK;
}