mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[PARTINFO][ARP]
Arch, manual define of UNICODE/_UNICODE is a call for trouble. svn path=/trunk/; revision=69813
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
add_executable(arp arp.c arp.rc)
|
||||
set_module_type(arp win32cui)
|
||||
set_module_type(arp win32cui ANSI)
|
||||
add_importlibs(arp iphlpapi ws2_32 shlwapi msvcrt kernel32)
|
||||
add_cd_file(TARGET arp DESTINATION reactos/system32 FOR all)
|
||||
|
||||
@@ -39,9 +39,6 @@
|
||||
#include <winsock2.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
|
||||
/*
|
||||
* Globals
|
||||
*/
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
//#define DUMP_DATA
|
||||
#define DUMP_SIZE_INFO
|
||||
#define UNICODE
|
||||
|
||||
#ifdef DUMP_DATA
|
||||
void HexDump(char *buffer, ULONG size)
|
||||
@@ -116,7 +115,7 @@ int main (int argc, char *argv[])
|
||||
sprintf(DriveName, "\\\\.\\PHYSICALDRIVE%lu", ulDrive);
|
||||
|
||||
/* Open drive */
|
||||
hDisk = CreateFile(DriveName,
|
||||
hDisk = CreateFileA(DriveName,
|
||||
GENERIC_READ,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||
NULL,
|
||||
|
||||
Reference in New Issue
Block a user