* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#ifdef __REACTOS__
+
#include <k32.h>
#define NDEBUG
extern HMODULE kernel32_handle;
+#else /* __REACTOS__ */
+
+#include "config.h"
+
+#include <stdarg.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "ntstatus.h"
+#define WIN32_NO_STATUS
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+#include "winternl.h"
+#include "winuser.h"
+#include "winnls.h"
+#include "wine/unicode.h"
+#include "kernel_private.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(resource);
+
+#endif /* __REACTOS__ */
+
struct format_args
{
ULONG_PTR *args;
*/
static LPWSTR load_message( HMODULE module, UINT id, WORD lang )
{
+#ifdef __REACTOS__
MESSAGE_RESOURCE_ENTRY *mre;
+#else
+ const MESSAGE_RESOURCE_ENTRY *mre;
+#endif
WCHAR *buffer;
- NTSTATUS Status;
+ NTSTATUS status;
TRACE("module = %p, id = %08x\n", module, id );
if (!module) module = GetModuleHandleW( NULL );
- Status = RtlFindMessage(module, (ULONG_PTR)RT_MESSAGETABLE, lang, id, &mre);
- if (!NT_SUCCESS(Status))
+#ifdef __REACTOS__
+ status = RtlFindMessage(module, (ULONG_PTR)RT_MESSAGETABLE, lang, id, &mre);
+ if (!NT_SUCCESS(status))
+#else
+ if ((status = RtlFindMessage( module, RT_MESSAGETABLE, lang, id, &mre )) != STATUS_SUCCESS)
+#endif
{
- SetLastError(RtlNtStatusToDosError(Status));
+ SetLastError( RtlNtStatusToDosError(status) );
return NULL;
}
reactos/dll/win32/kernel32/winnls/string/collation.c # Synced to WineStaging-1.7.55
reactos/dll/win32/kernel32/winnls/string/digitmap.c # Synced to WineStaging-3.3
reactos/dll/win32/kernel32/winnls/string/fold.c # Synced to WineStaging-3.3
- reactos/dll/win32/kernel32/winnls/string/format_msg.c # Synced to WineStaging-1.7.55
+ reactos/dll/win32/kernel32/winnls/string/format_msg.c # Synced to WineStaging-3.3
reactos/dll/win32/kernel32/winnls/string/lang.c # Synced in r52754
reactos/dll/win32/kernel32/winnls/string/lcformat.c # Synced to WineStaging-1.7.55
reactos/dll/win32/kernel32/winnls/string/nls.c # Synced in r52754