Changeset 21869 for branches


Ignore:
Timestamp:
Dec 8, 2011, 9:46:09 PM (14 years ago)
Author:
dmik
Message:

Port threads test case to GCC/kBuild.

Location:
branches/gcc-kmk/testapp
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/testapp/Makefile.kmk

    r21866 r21869  
    1717    gui/input \
    1818    gui/systray \
    19     network/iphlpapi
     19    network/iphlpapi \
     20    threads
    2021
    2122$(foreach dir,$(INCLUDE_SUBDIRS),$(eval include $$(PATH_SUB_CURRENT)/$(dir)/Makefile.kmk))
  • branches/gcc-kmk/testapp/threads/threads.c

    r21614 r21869  
    2121#include <strsafe.h>
    2222#else
     23#include <stdio.h>
    2324#include <stdarg.h>
    2425void StringCchPrintf(LPTSTR pszDest, size_t cchDest,
     
    241242        (lstrlen((LPCTSTR) lpMsgBuf) + lstrlen((LPCTSTR) lpszFunction) + 40) * sizeof(TCHAR));
    242243    StringCchPrintf((LPTSTR)lpDisplayBuf,
    243         LocalSize(lpDisplayBuf) / sizeof(TCHAR),
     244        LocalSize((HLOCAL)lpDisplayBuf) / sizeof(TCHAR),
    244245        TEXT("%s failed with error %d: %s"),
    245246        lpszFunction, dw, lpMsgBuf);
     
    248249        // Free error-handling buffer allocations.
    249250
    250     LocalFree(lpMsgBuf);
    251     LocalFree(lpDisplayBuf);
    252 }
    253 
     251    LocalFree((HLOCAL)lpMsgBuf);
     252    LocalFree((HLOCAL)lpDisplayBuf);
     253}
     254
Note: See TracChangeset for help on using the changeset viewer.