Fixed region leak.
[wine] / server / unicode.h
1 /*
2  * Unicode routines for use inside the server
3  *
4  * Copyright (C) 1999 Alexandre Julliard
5  */
6
7 #ifndef __WINE_SERVER_UNICODE_H
8 #define __WINE_SERVER_UNICODE_H
9
10 #ifndef __WINE_SERVER__
11 #error This file can only be used in the Wine server
12 #endif
13
14 #include "windef.h"
15 #include "wine/unicode.h"
16 #include "object.h"
17
18 static inline WCHAR *strdupW( const WCHAR *str )
19 {
20     size_t len = (strlenW(str) + 1) * sizeof(WCHAR);
21     return memdup( str, len );
22 }
23
24 extern int dump_strW( const WCHAR *str, size_t len, FILE *f, char escape[2] );
25
26 #endif  /* __WINE_SERVER_UNICODE_H */