Changeset 58177 in vbox
- Timestamp:
- Oct 12, 2015 11:19:10 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/iprt/cdefs.h (modified) (1 diff)
-
src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibAdditions.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r57944 r58177 1417 1417 /** @def RT_XSTR 1418 1418 * Returns the expanded argument as a string. 1419 * @param str Argument to expand and string y. */1419 * @param str Argument to expand and stringify. */ 1420 1420 #define RT_XSTR(str) RT_STR(str) 1421 1422 /** @def RT_LSTR_2 1423 * Helper for RT_WSTR that gets the expanded @a str. 1424 * @param str String litteral to prefix with 'L'. */ 1425 #define RT_LSTR_2(str) L##str 1426 /** @def RT_LSTR 1427 * Returns the expanded argument with a L string prefix. 1428 * 1429 * Intended for converting ASCII string \#defines into wide char string 1430 * litterals on Windows. 1431 * 1432 * @param str String litteral to . */ 1433 #define RT_LSTR(str) RT_LSTR_2(str) 1421 1434 1422 1435 /** @def RT_CONCAT -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibAdditions.cpp
r58176 r58177 40 40 #ifdef RT_OS_WINDOWS 41 41 42 # define WIDE_STR_2(a) L##a43 # define WIDE_STR(a) WIDE_STR_2(a)44 45 42 /** 46 43 * Opens the "VirtualBox Guest Additions" registry key. … … 58 55 static PCRTUTF16 s_apwszKeys[] = 59 56 { 60 L"SOFTWARE\\" WIDE_STR(VBOX_VENDOR_SHORT) L"\\VirtualBox Guest Additions",57 L"SOFTWARE\\" RT_LSTR(VBOX_VENDOR_SHORT) L"\\VirtualBox Guest Additions", 61 58 #ifdef RT_ARCH_AMD64 62 L"SOFTWARE\\Wow6432Node\\" WIDE_STR(VBOX_VENDOR_SHORT) L"\\VirtualBox Guest Additions",59 L"SOFTWARE\\Wow6432Node\\" RT_LSTR(VBOX_VENDOR_SHORT) L"\\VirtualBox Guest Additions", 63 60 #endif 64 61 L"SOFTWARE\\Sun\\VirtualBox Guest Additions",
Note:
See TracChangeset
for help on using the changeset viewer.

