- Add msvcrt linking where needed
authorAleksey Bragin <aleksey@reactos.org>
Sun, 10 Sep 2006 16:32:37 +0000 (16:32 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sun, 10 Sep 2006 16:32:37 +0000 (16:32 +0000)
- Change "rintf" unixism to ceil() and data conversion to integer type

svn path=/trunk/; revision=24031

reactos/dll/cpl/access/access.rbuild
reactos/dll/cpl/main/mouse.c
reactos/dll/cpl/mmsys/mmsys.rbuild

index b5145ef..21e401b 100644 (file)
@@ -10,6 +10,7 @@
        <library>kernel32</library>
        <library>user32</library>
        <library>comctl32</library>
+       <library>msvcrt</library>
        <file>access.c</file>
        <file>display.c</file>
        <file>general.c</file>
index 4e63567..de7208b 100644 (file)
@@ -235,7 +235,7 @@ ButtonProc(IN HWND hwndDlg,
                 SendMessage(hDlgCtrl, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0, 14));
                 pos = ((float)g_DoubleClickSpeed / MAX_DOUBLE_CLICK_SPEED);
                 pos /= (1.0f/11.0f);
-                SendMessage(hDlgCtrl, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)(INT)rintf(pos));
+                SendMessage(hDlgCtrl, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)(INT)ceil(pos));
 
 
             }
index 69eeff2..357f1b2 100644 (file)
@@ -10,6 +10,7 @@
        <library>kernel32</library>
        <library>user32</library>
        <library>comctl32</library>
+       <library>msvcrt</library>
        <library>devmgr</library>
        <file>mmsys.c</file>
        <file>mmsys.rc</file>