mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fixes from an attempted winelib build.
The winelib headers don't have GWL_foo, only GWLP_foo (which, fair enough, I should have been using already). And a side effect was to point out some slightly incautious integer types in printf argument lists.
This commit is contained in:
parent
5c051f00df
commit
bb59f27386
@ -923,7 +923,7 @@ static INT_PTR CALLBACK HostKeyDialogProc(HWND hwnd, UINT msg,
|
||||
HDC hdc = (HDC)wParam;
|
||||
HWND control = (HWND)lParam;
|
||||
|
||||
if (GetWindowLong(control, GWL_ID) == IDC_HK_TITLE) {
|
||||
if (GetWindowLong(control, GWLP_ID) == IDC_HK_TITLE) {
|
||||
SetBkMode(hdc, TRANSPARENT);
|
||||
HFONT prev_font = (HFONT)SelectObject(
|
||||
hdc, (HFONT)GetStockObject(SYSTEM_FONT));
|
||||
|
@ -125,10 +125,12 @@ static char *serial_configure(Serial *serial, HANDLE serport, Conf *conf)
|
||||
* Configurable parameters.
|
||||
*/
|
||||
dcb.BaudRate = conf_get_int(conf, CONF_serspeed);
|
||||
logeventf(serial->logctx, "Configuring baud rate %lu", dcb.BaudRate);
|
||||
logeventf(serial->logctx, "Configuring baud rate %lu",
|
||||
(unsigned long)dcb.BaudRate);
|
||||
|
||||
dcb.ByteSize = conf_get_int(conf, CONF_serdatabits);
|
||||
logeventf(serial->logctx, "Configuring %u data bits", dcb.ByteSize);
|
||||
logeventf(serial->logctx, "Configuring %u data bits",
|
||||
(unsigned)dcb.ByteSize);
|
||||
|
||||
switch (conf_get_int(conf, CONF_serstopbits)) {
|
||||
case 2: dcb.StopBits = ONESTOPBIT; str = "1 stop bit"; break;
|
||||
|
Loading…
Reference in New Issue
Block a user